Python

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!')

原文地址:https://www.cnblogs.com/ruiy/p/5079237.html