myNum = 4
print('猜数字游戏\n')
while True:
guess = int(input('请猜一个数:'))
if guess > myNum:
print('猜大了')
elif guess < myNum:
print('猜小了')
else:
print('恭喜你,猜对了!')
break
![](https://images2018.cnblogs.com/blog/1377886/201805/1377886-20180507152943870-345743747.png)
import turtle
turtle.circle(50)
turtle.circle(100)
turtle.circle(150)
turtle.circle(200)
turtle.done()
![](https://images2018.cnblogs.com/blog/1377886/201805/1377886-20180507153315413-1801951130.png)
import turtle
turtle.circle(50)
turtle.up()
turtle.goto(0,-50)
turtle.down()
turtle.circle(100)
turtle.done()
![](https://images2018.cnblogs.com/blog/1377886/201805/1377886-20180507153508913-101482145.png)
import turtle
turtle.circle(50,100)
turtle.circle(50,100,steps=3)
turtle.up()
turtle.goto(0,50)
turtle.down()
turtle.circle(10)
turtle.up()
turtle.goto(10,80)
turtle.down()
turtle.circle(10)
turtle.hideturtle()
turtle.down()
![](https://images2018.cnblogs.com/blog/1377886/201805/1377886-20180507153737131-1959135042.png)