錯誤信息:Traceback (most recent call last): File "C:/Users/ADMIN/Desktop/python/footballcomplex.py", line 85, in <module> if input2 == 'a':NameError: name 'input2' is not defined這是第 83-85 行:input2 = input("Would you like to long pass to 3(a) or through ball to 2(b)")if input2 == 'a':如果您想立即閱讀全文:link to codehttps://pastebin.com/bhYMKa8M問題在于當(dāng)我將 b 或 c 用于第一個 a、b 和 c 問題時。但 A 工作得非常好。請幫助我真的不知道。Python 3.7 版
變量說它沒有定義,但它是
慕田峪7331174
2022-06-28 16:46:13