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!')本文共 198 字,大约阅读时间需要 1 分钟。
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://txjkl.baihongyu.com/