程序执行流程:猜数字游戏;库的使用:turtle
myNum = 8012 print('猜猜现在是几几年:') while True: guess = int(input('请输入一个数字:')) if guess > myNum: print('猜大了') elif guess < myNum: print('猜小了') else: print('恭喜你,猜对了!请到左侧领取你的奖品。') break
import turtle turtle.circle(100) turtle.circle(200)
import turtle turtle.circle(50) turtle.up() turtle.goto(0,-50) turtle.down() turtle.circle(100)