Commit 3c32b4eb by BellCodeEditor

auto save

parent c4a16028
Showing with 2 additions and 2 deletions
...@@ -2,6 +2,8 @@ import turtle ...@@ -2,6 +2,8 @@ import turtle
#背景颜色 #背景颜色
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("pink") screen.bgcolor("pink")
#设置弹窗效果和变量
len=int(screen.textinput("提示","你想要多大的爱心呀?"))
#写字 #写字
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
...@@ -13,8 +15,6 @@ pen1=turtle.Pen() ...@@ -13,8 +15,6 @@ pen1=turtle.Pen()
#设置画笔粗细和颜色 #设置画笔粗细和颜色
pen1.pensize(5) pen1.pensize(5)
pen1.pencolor("red") pen1.pencolor("red")
#设置变量
len=int(screen.textinput("提示","你想要多大的爱心呀?"))
pen1.left(45) pen1.left(45)
pen1.forward(2*len) pen1.forward(2*len)
pen1.circle(len,180) pen1.circle(len,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