Commit f0b510a9 by BellCodeEditor

save project

parent 07858a54
Showing with 28 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
len=screen.textinput("大小","请输入:")
len=int(len)
pen=turtle.Pen()
screen.bgcolor("red")
pen.penup()
pen.goto(100,-100)
pen.write("丑\n\n怪",font=("宋体","50","italic"))
pen.hideturtle()
pen.pendown()
pen=turtle.Pen()
pen.pensize(5)
pen.pencolor("yellow")
pen.fillcolor("yellow")
pen.goto(0,0)
pen.begin_fill()
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
pen.end_fill()
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