python中debug用不了_初学Python,debug时报错,不知道原因在哪?

在pycharm下编写的.

报错信息如下:

C:\Python27\python.exe "C:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 51755 --file E:/python/first.py

pydev debugger: process 4988 is connecting

Connected to pydev debugger (build 171.4249.47)

Traceback (most recent call last):

File "C:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py", line 1585, in

globals = debugger.run(setup['file'], None, None, is_module)

File "C:\Program Files\JetBrains\PyCharm 2017.1.2\helpers\pydev\pydevd.py", line 1015, in run

pydev_imports.execfile(file, globals, locals) # execute the script

File "E:/python/first.py", line 3

SyntaxError: Non-ASCII character '\xe7' in file E:/python/first.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

Process finished with exit code 1

后来自己回忆了下,是我大意了..记得第一次debug的时候,

是要修改下图圈内的文件路径的,当我修改完文件路径之后,程序可以运行了.

所以每次创建新程序debug的时候,都要手动在这里修改文件路径吗?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值