我的dubug怎么会出现这样的问题
来源:3-21 程序调试实战:结合收银台程序讲解调试技巧(python中最重要的技巧)
慕斯851232
2019-06-25 17:32:04

而且也不会逐行显示
3回答
葛鹏1111
2019-06-26
我注意到你运行的Debug是hello_python.py 可能是这个原因?
慕猿梦
2019-06-25
同学,您好,同学项目工程下有个string.py文件,该文件名与系统内置文件重名,造成此类错误,同学可将其重命名即可。
如果我的回答解决了您的疑惑,望采纳!!^_^ 祝学习愉快~~~~~
慕斯851232
提问者
2019-06-25
D:\Python-Projects\venv\Scripts\python.exe "D:\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 56821 --file D:/Python-Projects/hello_python.py
Traceback (most recent call last):
File "D:\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\pydevd.py", line 15, in <module>
from _pydevd_bundle.pydevd_constants import IS_JYTH_LESS25, IS_PY34_OR_GREATER, IS_PY36_OR_GREATER, IS_PYCHARM, get_thread_id, \
File "D:\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\_pydevd_bundle\pydevd_constants.py", line 169, in <module>
from _pydev_imps._pydev_saved_modules import thread
File "D:\JetBrains\PyCharm Community Edition 2019.1.3\helpers\pydev\_pydev_imps\_pydev_saved_modules.py", line 21, in <module>
import xmlrpc.client as xmlrpclib
File "C:\Python37\lib\xmlrpc\client.py", line 136, in <module>
import http.client
File "C:\Python37\lib\http\client.py", line 71, in <module>
import email.parser
File "C:\Python37\lib\email\parser.py", line 12, in <module>
from email.feedparser import FeedParser, BytesFeedParser
File "C:\Python37\lib\email\feedparser.py", line 27, in <module>
from email._policybase import compat32
File "C:\Python37\lib\email\_policybase.py", line 7, in <module>
from email import header
File "C:\Python37\lib\email\header.py", line 16, in <module>
import email.quoprimime
File "C:\Python37\lib\email\quoprimime.py", line 44, in <module>
from string import ascii_letters, digits, hexdigits
ImportError: cannot import name 'ascii_letters' from 'string' (D:\Python-Projects\string.py)
hello World!Nice to meet you
MF9876
Process finished with exit code 1
相似问题