Commit bdfdf4fc by BellCodeEditor

auto save

parent dcceec40
Showing with 0 additions and 26 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("yellow")
pen.penup()
pen.goto(-150,-50)
pen.write("王老师,节日快乐,您辛苦了!",font=("times",30,"normal"))
pen.hideturtle()
p1=turtle.Pen()
p1.pensize(7)
p1.pencolor("red")
#你的画笔应该是针对P1的哦,两个而变量要注意一下哦~
p1.fillcolor("red")
p1.begin_fill()
len=int(screen.textinput("提示","size"))
p1.left(45)
p1.forward(len)
p1.circle(len/2,180)
p1.right(90)
p1.circle(len/2,180)
p1.forward(len)
p1.end_fill()
p1.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