Commit e492d5d0 by BellCodeEditor

save project

parent 62e1d613
Showing with 20 additions and 1 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是: ")
screen.bgcolor("light blue")
len=screen.textinput("提示","你想要多大的爱心")
lovesiz=int(len)
pen=turtle.Pen()
pen.write("你好呀,我是悟空",font=("黑体",40,"normal"))
pen.penup()
pen.goto(0,-100)
pen.write("你好呀,我是朱徐莹",font=("黑体",15,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.left(45)
pen1.fd(2*lovesiz)
pen1.circle(lovesiz,180)
pen1.right(90)
pen1.circle(lovesiz,180)
pen1.fd(2*lovesiz)
pen.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