Paris-

导航

猜数字

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import turtle
>>> turtle.circle(50)
>>> turtle.circle(100)
>>> 

  

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import turtle
>>> turtle.circle(50)
>>> turtle.circle(100)
>>> turtle.goto(0,-100)
>>> turtle.circle(200)
>>> turtle.up()

myNum = 7 print('猜数字游戏\n') while True: guess = int(input('请猜一个数:')) if guess > myNum: print('猜大了') elif guess < myNum: print('猜小了') else: print('恭喜你,猜对了!') break

  

posted on 2018-04-28 16:56  Paris-  阅读(188)  评论(0编辑  收藏  举报