-1
當我在此代碼它與此消息打破進入非數:非整數破整數輸入
Traceback (most recent call last): File "C:/Users/Default/Desktop/AS91076.py", line 12, in temp = int(input("At what Temperature do you want your wash? (Maximum 40 Degrees)")) ValueError: invalid literal for int() with base 10: 'asdf'
temp = int(input("At what Temperature do you want your wash? (Maximum 40 Degrees)"))
if temp < 41:
**Misc Code**
else:
print("Not a valid Temperature!")
試試輸入'40',而不是''asdf''和google'如果isinstance(溫度,INT):#做something' –
@SteveSmith文件顧名思義它是Python的 –
字裏行間 - 我相信你想要的是被鏈接的副本覆蓋 –