Commit 7466df74 by BellCodeEditor

save project

parent 07858a54
Showing with 26 additions and 0 deletions
import turtle
pen=turtle.Pen()
s=turtle.Screen()
s.bgcolor("pink")
len=s.textinput("提示","你想要多大的爱心呀")
l=int(len)
pen.penup()
pen.goto(120,-150)
pen.write("诺一,你好呀/",font=("Times",30,"normal"))
#2画心
len=80
turtle.fillcolor("red")
pen1=turtle.Pen()
pen1.pensize(10)
pen.begin_fill()
pen1.pencolor("red")
pen1.left(45)
pen1.circle(-len,180)
pen1.forward(2*len)
pen1.right(90)
pen1.forward(2*len)
pen1.circle(-len,180)
pen.hideturtle()
pen1.hideturtle()
turtle.done()
\ No newline at end of file
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