|
如果发现出错,应该去哪里查看代码错误原因?
本人非常新手
- Exception in thread Thread-2:
- Traceback (most recent call last):
- File "C:\Python3\lib\threading.py", line 914, in _bootstrap_inner
- self.run()
- File "C:\Python3\lib\threading.py", line 862, in run
- self._target(*self._args, **self._kwargs)
- File "C:\pp\webpagecheck12.py", line 23, in md5CodeCompare
- ccc=chardet.detect(html)['encoding'] #识别编码
- File "C:\Python3\lib\site-packages\chardet-2.3.0-py3.5.egg\chardet\__init__.py", line 28, in detect
- u = universaldetector.UniversalDetector()
- AttributeError: module 'chardet.universaldetector' has no attribute 'UniversalDetector'
- Exception in thread Thread-3:
- Traceback (most recent call last):
- File "C:\Python3\lib\threading.py", line 914, in _bootstrap_inner
- self.run()
- File "C:\Python3\lib\threading.py", line 862, in run
- self._target(*self._args, **self._kwargs)
- File "C:\pp\webpagecheck12.py", line 23, in md5CodeCompare
- ccc=chardet.detect(html)['encoding'] #识别编码
- File "C:\Python3\lib\site-packages\chardet-2.3.0-py3.5.egg\chardet\__init__.py", line 28, in detect
- u = universaldetector.UniversalDetector()
- AttributeError: module 'chardet.universaldetector' has no attribute 'UniversalDetector'
复制代码
|
|