Commit 9abfc373 by BellCodeEditor

save project

parent cc287757
Showing with 7 additions and 8 deletions
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("pink") screen.bgcolor("pink")
len=60 len=screen.textinput("幸运数♥","你的幸运数(0~150整数):")
len=int(len)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.penup() pen1.penup()
pen1.goto(0,-100) pen1.goto(0,-100)
pen1.pencolor("red") pen1.pencolor("red")
pen1.pensize(5) pen1.pensize(5)
pen1.fillcolor("red")
pen1.begin_fill()
pen1.hideturtle() pen1.hideturtle()
pen1.pendown() pen1.pendown()
pen1.left(45) pen1.left(45)
...@@ -17,11 +16,10 @@ pen1.circle(len,180) ...@@ -17,11 +16,10 @@ pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(len,180)
pen1.forward(2*len) pen1.forward(2*len)
pen1.end_fill()
pen=turtle.Pen() pen=turtle.Pen()
pen.hideturtle() pen.hideturtle()
pen.penup() pen.penup()
pen.goto(100,-300) pen.goto(100,-100)
pen.pencolor("brown") pen.pencolor("brown")
pen.write("诺依\n我收到你的来信了\n谢谢你!\n你真是貌美如花\n令我难以自拔!\n\n祝你\n学有所成\n万事如意!",font=("Time",20,"normal")) pen.write("诺依\n我收到你的来信了\n谢谢你!\n你真是貌美如花\n令我难以自拔!\n\n祝你\n学有所成\n万事如意!",font=("Time",20,"normal"))
turtle.done() 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