简单的比大小 12345678910111213#比大小import random computer = random.randrange(1,100)user = int(input("请选择一个一百以内的数字:"))if user >= 0 or user < 100: if user > computer: print("你胜利啦!") elif user < computer: print("我胜利啦!") else: print("平局")else: print("违反规则!")