Commit 155fc85d by BellCodeEditor

save project

parent 9c5d82a7
Showing with 6 additions and 8 deletions
...@@ -13,8 +13,6 @@ import turtle ...@@ -13,8 +13,6 @@ import turtle
pen.write("你好\n诺依\n用python写电子贺卡真是太有趣了\n我也喜欢python\n---悟空.",font=("Times",30,"normal")) pen.write("你好\n诺依\n用python写电子贺卡真是太有趣了\n我也喜欢python\n---悟空.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
len=60 len=60
len=screen.textinput("提示""你想要多大的爱心")
lovesize=int(len)
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen.pendown() pen.pendown()
...@@ -27,11 +25,11 @@ import turtle ...@@ -27,11 +25,11 @@ import turtle
pen.circle(50,180) pen.circle(50,180)
pen.forward(100) pen.forward(100)
turtle.done() turtle.done()
pen1=turtle.Pen pen1=turtle.Pen
pen.left(90) pen.left(90)
pen1.left() pen1.left()
pen1.forward(100) pen1.forward(100)
pen1.circle(50,180) pen1.circle(50,180)
pen1.right(90) pen1.right(90)
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