Commit 73732945 by BellCodeEditor

save project

parent a50ceeec
Showing with 26 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
turtle.screensize(900,900,"light blue")
len=turtle.textinput("提示","你想要多大的爱心?")
le=int(len)
pen=turtle.Pen()
pen.write("《早发白帝城》 祥\n朝辞白帝彩云间,\n千里江陵一日还。\n两岸猿声啼不住,\n轻舟已过万重山。",font=("黑体",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.fd(2*le)
pen1.circle(le,180)
pen1.right(90)
pen1.circle(le,180)
pen1.fd(2*le)
pen1.end_fill()
turtle.done()
\ No newline at end of file
import turtle
# screen=turtle.Screen()
# screen.textinput("姓名框","你的名字是?")
turtle.textinput("姓名框","你的名字是?")
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