Python报错TypeError: '<' not supported between instances of 'str' and 'int'
发布
于
2021-01-28 20:37:20
3.3K
0
举报
1 n = input()
2 if n>=100:print(int(n)/10)
3 else:print(int(n)*10)
报错内容:
Traceback (most recent call last):
File "1.py", line 12, in <module>
if n>=100:print(int(n)/10)
TypeError: '>=' not supported between instances of 'str' and 'int'