Commit d778d29c by BellCodeEditor

save project

parent 07858a54
Showing with 28 additions and 0 deletions
screen=turtle.Screen()
screen.bgcolor("light blue")
len1=screen.textinput("提示","你要多大的爱心")
lovesize=int(len1)
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(70,-100)
pen.write("Hi,诺依~\n用Python写电子贺卡真是太有趣啦~\n我也喜欢用Python写电子贺卡!",font=("Times",13,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.penup()
pen1.goto(-50,-100)
pen1.pendown()
pen1.color("red")
pen1.fillcolor("red")
pen1.begin_fill()
pen1.pensize(3)
pen1.left(45)
pen1.forward(lovesize*2)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(lovesize*2)
pen1.end_fill()
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