1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | from urllib import request class Spider(): url = 'https://www.panda.tv/cate/lol' def __fetch_content( self ): r = request.urlopen(Spider.url) htmls = r.read() htmls = str (htmls,encoding = 'utf-8' ) def __analysis( self ,htmls): pass def go( self ): htmls = self .__fetch_content() self .__analysis(htmls) spider = Spider() spider.go() |
E1111:Assigning to function call which doesn't return
请问下 htmls那边红色波浪直接报错 请问是哪里问题