Commit 8ce519bb by BellCodeEditor

save project

parent a0be2014
Showing with 5 additions and 3 deletions
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(200,-200) pen.goto(200,-200)
pen.write("你好",font=("Times",10,"normal")) pen.write("你好",font=("Times",10,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
len=60 len=screen.textinput("提示","你想要多大的爱心")
len=float(len)
pen1.pensize(10) pen1.pensize(10)
pen1.pencolor("red") pen1.pencolor("red")
pen1.color("red") pen1.color("red")
...@@ -17,6 +20,5 @@ pen1.right(90) ...@@ -17,6 +20,5 @@ pen1.right(90)
pen1.circle(len,180) pen1.circle(len,180)
pen1.forward(2*len) pen1.forward(2*len)
pen1.end_fill() pen1.end_fill()
screen=turtle.Screen()
screen.bgcolor("pink")
turtle.done() turtle.done()
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