Commit b25a0810 by BellCodeEditor

save project

parent 07858a54
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧
import turtle
x=turtle.textinput("提示","你想要多大的爱心呀?(建议100)")
len=int(x)
turtle.bgcolor("pink")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好,小依。\n今天玩得开心吗?",font=("Times",30,"normal"))
pen.pensize(5)
pen.pencolor("red")
pen.goto(0,-20)
pen.pendown()
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
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