Commit 17b9b719 by BellCodeEditor

save project

parent 72dbe128
Showing with 7 additions and 5 deletions
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("提示","你想要多大的爱心呀?") pen=penup()
pen.goto(100,-100)
pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣了~\n-----悟空",font=("Time
len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.penup()
goto(100,-100)
pen.write("你好\n诺依.",font=("Times",30,"normal")) pen.write("你好\n诺依.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
len=60 len=60
...@@ -17,6 +21,4 @@ pen.left(45) ...@@ -17,6 +21,4 @@ pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(len
pen.forward(2*len) \ No newline at end of file
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