Commit 162cac1f by BellCodeEditor

save project

parent 1ab3d841
Showing with 5 additions and 6 deletions
import turtle import turtle
s=turtle.Screen() s=turtle.Screen()
len=s.textinput("提示","你想输入的数字是多少呀?") len=s.textinput("提示","你想要的爱心多大呀?")
lovesize=int(len) lovesize=int(len)
lovesize=float(len) lovesize=float(len)
s.bgcolor("light pink") s.bgcolor("light pink")
...@@ -14,13 +14,12 @@ p1.pensize(5) ...@@ -14,13 +14,12 @@ p1.pensize(5)
p1.pencolor("red") p1.pencolor("red")
p1.fillcolor("red") p1.fillcolor("red")
p1.begin_fill() p1.begin_fill()
p1.left(45) p1.left(45)
p1.forward(len) p1.forward(lovesize)
p1.circle(2*len,180) p1.circle(2*lovesize,180)
p1.right(90) p1.right(90)
p1.circle(len,180) p1.circle(lovesize,180)
p1.forward(2*len) p1.forward(2*lovesize)
# p1.penup() # p1.penup()
# p1.goto(70,0) # p1.goto(70,0)
# p1.circle(3,360) # p1.circle(3,360)
......
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