标签:start 流程 goto begin 分享 com put rtl 猜数字游戏
input(‘start‘) myNumber = 7 while True: guess = int(input()) if guess > myNumber: print(‘>‘) elif guess < myNumber: print (‘<‘) else: print(‘‘) break
import turtle turtle.fillcolor(‘red‘) turtle.begin_fill() turtle.circle(100) turtle.end_fill() turtle.up() turtle.goto(0,-100) turtle.down() turtle.fillcolor(‘blue‘) turtle.begin_fill() turtle.circle(300) turtle.end_fill() turtle.down() turtle.goto(0,-50) turtle.down() turtle.fillcolor(‘red‘) turtle.begin_fill() turtle.circle(150) turtle.end_fill() turtle.circle(100) turtle.fillcolor(‘yellow‘) turtle.begin_fill() turtle.circle(50) turtle.end_fill() turtle.done()
标签:start 流程 goto begin 分享 com put rtl 猜数字游戏
原文地址:https://www.cnblogs.com/biuabiu123/p/8982538.html