python d中的错误未定义。
我正在学习python并且有这个错误。我可以知道代码中的错误在哪里。File "", line 1, in .Name = ""Desc = ""Gender = ""Race = ""# Prompt user for user-defined informationName = input('What is your Name? ')
Desc = input('Describe yourself: ')
当我运行程序时
它输出你的名字是什么?(i投入d)
这就给出了错误Traceback (most recent call last):
File "/python/chargen.py", line 19, in
Name = input('What is your Name? ')
File "", line 1, in NameError: name 'd' is not defined
这是Python 3中为绝对初学者编写的示例代码。