Commit 52e55f74 by BellCodeEditor

save project

parent 736f7104
Showing with 3 additions and 2 deletions
...@@ -2,9 +2,10 @@ import turtle ...@@ -2,9 +2,10 @@ import turtle
t = turtle.Turtle() #导入海龟拿到画笔 t = turtle.Turtle() #导入海龟拿到画笔
screen = turtle.Screen() screen = turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
t.pensize(10) t.pensize(99)
t.pencolor("red") t.pencolor("red")
len = 60 len = screen.textinput("提示","输入你想要的爱心大小?")
len = int(len)
t.left(45) t.left(45)
t.forward(len*2) t.forward(len*2)
t.circle(len,180) t.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