Commit 220dfe31 by BellCodeEditor

save project

parent 654bc3ba
Showing with 27 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen1=turtle.Pen()
pen1.penup()
pen1.goto(200,0)
pen1.write("你好",font=("Times",30,"normal"))
pen1.hideturtle()
pen=turtle.Pen()
pen.pencolor("yellowgreen")
pen.pensize(15)
pen.fillcolor("red")
#开始填充
pen.begin_fill()
pen.left(45)
pen.circle(50,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.left(90)
pen.forward(100)
pen.end_fill()
#固定画布
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