Commit f05baba5 by BellCodeEditor

auto save

parent 52f26819
Showing with 41 additions and 0 deletions
import turtle
pen = turtle.Turtle() #创建画笔
w = turtle.Screen() #创建窗口
w.bgcolor('blue')
def circle():
pen.up()
pen.goto(0,-120)
pen.down()
pen.color('red')
pen.circle(120)
pen.up()
pen.goto(0,0)
def lingxin(color):
pen.color(color)
pen.down()
pen.right(30)
pen.forward(80)
pen.left(60)
pen.forward(80)
pen.left(120)
pen.forward(80)
pen.left(60)
pen.forward(80)
pen.up()
pen.right(180)
pen.goto(0,0)
circle()
for i in range(12):
pen.forward(120)
pen.begin_fill()
lingxin('yellow')
pen.end_fill()
for i in range(12):
pen.forward(120)
lingxin('black')
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