运行没有结果
来源:13-4 VSCode中调试代码

慕斯7365182
2019-08-05
from urllib import request
class Spider():
url=‘https://www.huya.com/g/1’
def __fetch_content(self):
r=request.urlopen(Spider.url)
htmls=r.read()
def go(self):
self.__fetch_content()
spider=Spider()
spider.go()
写回答
2回答
-
安迪喽
2020-06-09
我也是这个代码敲的,没有报错,但是没有输出结果
012020-06-09 -
7七月
2019-08-06
需要详细的调试一下看看的。
00
相似问题