Error Keeps Appearing When Using 'raw_input' Python3.5
本问题已经有最佳答案,请猛点这里访问。
On Python 3.5.1,when never I enter this:
1 2 3 4 5 6 7 8 9 | print ("How old are you?"), age = raw_input() print ("How tall are you?" ), height = raw_input() print ("How much do you weigh?"), weight = raw_input() print ("So, you're %r old, %r tall and %r heavy." % ( age, height, weight))' |
总是告诉我原始输入不是定义
你几岁了?跟踪(最新呼叫最后):SARA/School Work/Computer Science/Python Practice/3.py,Line 2,inAge=RAW&U Input()Nameerror:name raw&uput is not defined'
您需要在python 3中使用input()而不是raw_input()。
使用
因为python 3,您应该使用