Commit 1ab3d841 by BellCodeEditor

save project

parent 014c36f0
Showing with 6 additions and 3 deletions
import turtle
s=turtle.Screen()
len=s.textinput("提示","你想输入的数字是多少呀?")
lovesize=int(len)
lovesize=float(len)
s.bgcolor("light pink")
pen=turtle.Pen()
pen.penup()
......@@ -11,10 +14,10 @@ p1.pensize(5)
p1.pencolor("red")
p1.fillcolor("red")
p1.begin_fill()
len=60
p1.left(45)
p1.forward(2*len)
p1.circle(len,180)
p1.forward(len)
p1.circle(2*len,180)
p1.right(90)
p1.circle(len,180)
p1.forward(2*len)
......
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