Commit d3d5a777 by BellCodeEditor

save project

parent 0cfb4bb9
Showing with 4 additions and 2 deletions
...@@ -2,8 +2,10 @@ import turtle ...@@ -2,8 +2,10 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=int(input("请输入爱心大小:")) len1=screen.textinput("爱心","你想要多大的爱心")
color=input("请输入颜色:") len=int(len1)
#color=input("请输入颜色:")
color=screen.textinput("颜色","你想要什么颜色的爱心")
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen.pendown() pen.pendown()
......
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