我正在手机上测试这个 QPython 应用程序,我有以下代码:
#-*-coding:utf8;-*
#qpy:console
#qpy:2
numOne = 1
numTwo = 2
person = str(input("What's your name?"))
print "Guess what I can do?"
print "Hello,", person
但是,它返回一个错误:
> hipipal.qpyplus/scripts/.last_tmp.py" <
What's your name?jason
Traceback (most recent call last):
File "/storage/emulated/0/com.hipipal.qpyplus/scripts/.last_tmp.py", line 8, in <module>
person = str(input("What's your name?"))
File "<string>", line 1, in <module>
NameError: name 'jason' is not defined
1|u0_a320@hltetmo:/ $
抱歉,如果格式已关闭,我会在旅途中通过手机发布此内容。