Commit 466dd64c by BellCodeEditor

save project

parent 3982d6d6
Showing with 7 additions and 5 deletions
......@@ -6,7 +6,8 @@ screen.bgcolor("yellow")
pen=turtle.Pen()
pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣啦~\n我也喜欢python~\n——悟空 ",font=("Times",13,"normal"))
#画爱心
len=60
len=screen.textinput("提示","你要多大的爱心")
lovesize=int(len)
pen1=turtle.Pen()
pen1.penup()
pen1.goto(-130,50)
......@@ -14,10 +15,10 @@ pen1.pendown()
pen1.pencolor("blue")
pen1.pensize(6)
pen1.left(45)
pen1.forward(len*2)
pen1.circle(len,180)
pen1.forward(lovesize*2)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(len*2)
pen1.circle(lovesize,180)
pen1.forward(lovesize*2)
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