这个问题可能很小,但我对Python还不熟悉。这个问题最好用下面的简单例子来说明。我正在使用pdb调试以下脚本(它是python 3):
astring = input("input here: ")
input here: abc
但无论我从键盘输入什么,我都会出错。
NameError: "name 'abc' is not defined"
> /home/wang/tmp/test.py(4)<module>()
-> astring = input("input here: ")
调试时如何输入?谢谢!