"""100 字符小游戏 - 猜数字""" import random n=random.randint(1,100);print("猜 1-100 的数字") while True: g=int(input("猜:"));print("大了!"if g>n else "小了!"if g