Commit fc2f1f9b by BellCodeEditor

save project

parent 07858a54
Showing with 21 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
a=int(turtle.textinput('提示','大小'))
pen =turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("床前明月光,\n疑是地上霜。",font=('Times',30,'bold'))
pen.goto(0,0)
pen.pendown()
pen.color("red")
pen.pensize(5)
pen.left(45)
pen.forward(a)
pen.circle(a/2,180)
pen.right(90)
pen.circle(a/2,180)
pen.forward(a)
turtle.bgcolor("pink")
pen.hideturtle()
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