-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的 –
字里行间 - 我相信你想要的是被链接的副本覆盖 –