Commit edcc80b2 by BellCodeEditor

auto save

parent 599c06b3
Showing with 114 additions and 0 deletions
import turtle
#中国国旗
turtle.up()
turtle.goto(-200,200)
turtle.down()
turtle.begin_fill()
turtle.fillcolor("red")
turtle.pencolor("red")
for i in range(2):
turtle.forward(280)
turtle.right(90)
turtle.forward(200)
turtle.right(90)
turtle.end_fill()
turtle.up()
turtle.goto(-170,145)
turtle.down()
turtle.begin_fill()
turtle.fillcolor("yellow")
turtle.pencolor("yellow")
for x in range(5):
turtle.forward(50)
turtle.right(144)
turtle.end_fill()
turtle.up()
turtle.goto(-100,180)
turtle.down()
turtle.begin_fill()
turtle.fillcolor("yellow")
turtle.pencolor("yellow")
for x in range(5):
turtle.forward(20)
turtle.right(144)
turtle.end_fill()
turtle.up()
turtle.goto(-70,160)
turtle.down()
turtle.begin_fill()
turtle.fillcolor("yellow")
turtle.pencolor("yellow")
for x in range(5):
turtle.forward(20)
turtle.right(144)
turtle.end_fill()
turtle.up()
turtle.goto(-70,120)
turtle.down()
turtle.begin_fill()
turtle.fillcolor("yellow")
turtle.pencolor("yellow")
for x in range(5):
turtle.forward(20)
turtle.right(144)
turtle.end_fill()
turtle.up()
turtle.goto(-100,100)
turtle.down()
turtle.begin_fill()
turtle.fillcolor("yellow")
turtle.pencolor("yellow")
for x in range(5):
turtle.forward(20)
turtle.right(144)
turtle.end_fill()
turtle.hideturtle()#隐藏小海龟
#维持面板
turtle.done()
\ No newline at end of file
import turtle
import turtle
pen=turtle.Pen()
pen.speed(5)
pen.fillcolor("red")
pen.begin_fill()
pen.penup()
pen.goto(-150,100)
for i in range(2):
pen.forward(300)
pen.left(-90)
pen.forward(200)
pen.left(-90)
pen.end_fill()
#大五角星
pen.penup()
pen.goto(-130,60)
pen.pencolor("yellow")
pen.pendown()
pen.fillcolor("yellow")
pen.begin_fill()
for i in range(5):
pen.forward(60)
pen.left(-144)
pen.end_fill()
#上小五角星
pen.goto(-130,60)
pen.pencolor("yellow")
pen.pendown()
pen.fillcolor("yellow")
pen.begin_fill()
for i in range(5):
pen.forward(60)
pen.left(-144)
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