Commit 17976fdb by BellCodeEditor

save project

parent 223d0b9c
Showing with 2 additions and 1 deletions
import turtle import turtle
pen1=turtle.Pen() pen1=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
len=screen.textinput("爱心大小","你想要画多大")
len=int(len)
screen.bgcolor("blue") screen.bgcolor("blue")
pen1.penup() pen1.penup()
pen1.goto(100,-100) pen1.goto(100,-100)
...@@ -10,7 +12,6 @@ pen=turtle.Pen() ...@@ -10,7 +12,6 @@ pen=turtle.Pen()
pen.fillcolor("pink") pen.fillcolor("pink")
pen.begin_fill() pen.begin_fill()
pen.pensize(5) pen.pensize(5)
len=70
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.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