猫史档案馆


【Python作品分享】China No.1【作品秀】

用户:内向的阿米巴15yQ内向的阿米巴15yQ查看:1 回复:3 评论:1 创建时间:2019-08-26T09:12:18


【作品展示】

center_image

 

【作品介绍】

 

【作品源代码】

# author : momo
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()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
内向的阿米巴15yQ内向的阿米巴15yQ

emotion_编程猫_加油

点赞0


评论


你猜你猜你猜你猜你猜你猜你猜你猜

emotion_编程猫_点赞

点赞0


评论


无题Wuti无题Wuti

这个国旗是有点问题的哦,你可以看一下我发布的国旗。emotion_编程猫_点赞

点赞0


评论