Commit a5a859a5 by BellCodeEditor

save project

parent 105ed82f
Showing with 8 additions and 6 deletions
import turtle
a=float(input("输入大小"))
c=input("输入颜色")
d=turtle.Screen()
f=d.textinput("输入","大小")
e=float(f)
c=d.textinput("输入颜色","")
b=turtle.Pen()
b.fillcolor(c)
b.begin_fill()
b.left(45)
b.forward(a)
b.circle(a/2,180)
b.forward(e)
b.circle(e/2,180)
b.right(90)
b.circle(a/2,180)
b.forward(a)
b.circle(e/2,180)
b.forward(e)
b.end_fill()
turtle.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