摘要:
File "MT_class.py", line 12, in run apply(self.func, self.args)NameError: name 'apply' is not defined python3已经不再支持apply 直接改成self.func(*self.args)就好了 阅读全文
摘要:
根据所抓取的网页来修改编码, 如果网页编码是utf-8, 那就html=html.decode('utf-8') 上下文是这样的 html = '' while True: html = loadurl(url) if html == '': print ('load', url,'error') 阅读全文