标签:
TypeError: unorderable types:str() <= int()
number = input(‘Enter a number between 1 and 10: ‘)
if int(number) <= 10:
if int(number) >= 1:
print(‘Great!‘)
else:
print(‘Wrong!‘)
else:
print(‘Wrong!‘)
标签:
原文地址:http://www.cnblogs.com/ruiy/p/5079237.html