Commit 724a5454 by BellCodeEditor

save project

parent 802c2ff9
Showing with 10 additions and 8 deletions
import turtle
import random
name=turtle.textinput("姓名框","What is your name?")
len=random.randint(50,100)
turtle.pendown()
turtle.bgcolor("pink")
turtle.write("卢本伟发来贺卡:\n得得得得得\n得得得得得得得得得得得得",font=("Times",15,"normal"))
turtle.write(name+":祝贺您\n得得得得得\n得得得得得得得得得得得得\n----卢本伟",font=("Times",15,"normal"))
turtle.pencolor("red")
turtle.pensize(10)
turtle.penup()
turtle.left(180)
turtle.forward(100)
turtle.forward(len*2)
turtle.left(180)
turtle.pendown()
turtle.left(45)
turtle.forward(100)
turtle.circle(50,180)
turtle.forward(len*2)
turtle.circle(len,180)
turtle.right(90)
turtle.circle(50,180)
turtle.forward(100)
turtle.done()
\ No newline at end of file
turtle.circle(len,180)
turtle.forward(len*2)
turtle.done()
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