这个代码怎么解决呢?错在哪里?
bash:root$ python ~/practice/apps-1-id-5cd9765619bbcf0001554799/root/main3.py
Traceback (most recent call last):
File "/home/pythonclass/5947c9f5-0508-4b6a-9959-05a6a0269a60/b13792ba-812a-446e-8b25-35f1175eaab3/practice/apps-1-id-5cd9765619bbcf0001554799/root/main3.py", line 1, in <module>
print(str(number1)+unit1+line1+sentence1)
NameError: name 'number1' is not defined
这个提示不是说了么,number1这个变量没定义过你就直接打印了
热门标签: