【发布时间】:2021-03-21 07:41:45
【问题描述】:
n = input("enter a number:")
if (float(n))> 0:
print('Positive')
elif (float(n))< 0:
print('Negative')
elif n== '0':
print('Zero')
else:
print('not a number')
除了我输入“erght”之类的内容外,一切都按预期工作。
【问题讨论】:
-
请使用完整的错误回溯更新您的问题。
标签: python