Commit c29800f4 by BellCodeEditor

save project

parent 0b1d1547
Showing with 2 additions and 2 deletions
...@@ -2,8 +2,6 @@ import turtle ...@@ -2,8 +2,6 @@ import turtle
#背景 #背景
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("你要多大的爱心")
len1=int(len)
#写字 #写字
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
...@@ -15,6 +13,8 @@ pen1=turtle.Pen() ...@@ -15,6 +13,8 @@ pen1=turtle.Pen()
pen1.pencolor("red") pen1.pencolor("red")
len=90 len=90
pen1.pensize(5) pen1.pensize(5)
len=screen.textinput("你要多大的爱心")
len1=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(2*len1) pen1.forward(2*len1)
pen1.circle(len1,180) pen1.circle(len1,180)
......
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