标签:alt put guess rtl 数字游戏 http int 输入 com
>>> import turtle >>> turtle.circle(10) >>> turtle.circle(20) >>> turtle.circle(30) >>> turtle.circle(40) >>> turtle.circle(50) >>>
>>> myNUM = 6 >>> print(‘猜数字大小游戏/n‘) 猜数字大小游戏/n >>> while True: guess = int(input(‘请输入一个数字:‘)) if guess > myNUM: print(‘猜大了‘) elif guess < myNUM: print(‘猜小了‘) else: print(‘恭喜恭喜恭喜你呀,猜对了!‘) break
标签:alt put guess rtl 数字游戏 http int 输入 com
原文地址:https://www.cnblogs.com/dbb99/p/8975504.html