Commit 91fdce5a by BellCodeEditor

auto save

parent f79707f6
Showing with 93 additions and 1 deletions
import random
b=random.randint(1,10)
b=random.randint(1,100)
print("欢迎来到猜数字游戏!")
a=int(input("请猜出正确答案:"))
while a!=b:
......
import turtle as t
t.penup()
t.left(90)
t.fd(200)
t.pendown()
t.left(-90)
t.fillcolor('red')
t.begin_fill()
t.circle(10,180)
t.circle(25,110)
t.left(50)
t.circle(60,45)
t.circle(20,170)
t.right(24)
t.fd(30)
t.left(10)
t.circle(30,110)
t.left(40)
t.circle(90,70)
t.circle(30,150)
t.right(30)
t.fd(15)
t.circle(80,90)
t.left(15)
t.fd(45)
t.right(165)
t.fd(20)
t.left(155)
t.circle(150,80)
t.left(50)
t.circle(150,90)
t.end_fill()
t.left(152)
t.circle(-90,70)
t.left(20)
t.circle(75,105)
t.setheading(60)
t.circle(80,98)
t.circle(-90,40)
t.left(180)
t.circle(90,40)
t.circle(-80,98)
t.setheading(-83)
t.fd(30)
t.left(90)
t.fd(25)
t.left(45)
t.fillcolor('green')
t.begin_fill()
t.circle(-80,90)
t.right(90)
t.circle(-80,90)
t.end_fill()
t.right(135)
t.fd(60)
t.left(180)
t.fd(85)
t.left(90)
t.fd(80)
t.right(90)
t.right(45)
t.fillcolor('green')
t.begin_fill()
t.circle(80,90)
t.left(90)
t.circle(80,90)
t.end_fill()
t.left(135)
t.fd(60)
t.left(180)
t.fd(60)
t.right(90)
t.circle(200,60)
t.up()
t.goto(100,-300)
t.done()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment