Loading... ``` import random shuzi = random.randint(1,1000) while True: n = int(input('请输入一个数字')) if n == shuzi: print("猜对了") break elif n>shuzi: print('大了') else: print('小了') ``` Last modification:September 16, 2021 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的内容对你有用,请随意赞赏
One comment
rnm