Commit fa48cdaa by BellCodeEditor

save project

parent 07858a54
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("red")
len=screen.textinput("提示","你想要多大的爱心呀?")
len=int(len)
pen=turtle.Pen()
pen.write("锄禾日当午,\n汗滴禾下土,\n谁知盘中餐,\n粒粒皆辛苦",font=("Times",30,"normal"))
pen.hideturtle()
pen.penup()
pen.goto(0,0)
pen.left(45)
pen.pensize(8)
pen.pencolor("pink")
pen.down()
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
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