猫史档案馆


【Python作品分享】五星红旗【作品秀】

用户:知足的彗星猫Vgv知足的彗星猫Vgv查看:11 回复:11 评论:11 创建时间:2020-12-26T21:29:19


【作品展示】

center_image

 

【作品介绍】

hhhhh

 

【作品源代码】

import turtle

mypen = turtle.Pen()

mypen.pencolor("red")
mypen.begin_fill()
mypen.fillcolor("red")
mypen.forward(250)
mypen.right(90)
mypen.forward(200)
mypen.right(90)
mypen.forward(250)
mypen.right(90)
mypen.forward(200)
mypen.end_fill()
mypen.back(20)
mypen.right(90)
mypen.forward(20)


def star():
    mypen.pencolor("gold")
    mypen.begin_fill()
    mypen.fillcolor("gold")
    for i in range(5):
        mypen.forward(15)
        mypen.left(72)
        mypen.forward(15)
        mypen.right(144)
    mypen.end_fill()


star()

mypen.penup()
mypen.right(90)
mypen.forward(35)
mypen.pendown()
mypen.left(90)

mypen.begin_fill()
mypen.fillcolor("gold")
for i in range(5):
    mypen.forward(10)
    mypen.left(72)
    mypen.forward(10)
    mypen.right(144)
mypen.end_fill()

mypen.penup()
mypen.forward(40)
mypen.pendown()

mypen.begin_fill()
mypen.fillcolor("gold")
for i in range(5):
    mypen.forward(10)
    mypen.left(72)
    mypen.forward(10)
    mypen.right(144)
mypen.end_fill()

mypen.penup()
mypen.left(90)
mypen.forward(20)
mypen.pendown()
mypen.right(90)

mypen.begin_fill()
mypen.fillcolor("gold")
for i in range(5):
    mypen.forward(10)
    mypen.left(72)
    mypen.forward(10)
    mypen.right(144)
mypen.end_fill()

mypen.penup()
mypen.left(90)
mypen.forward(20)
mypen.pendown()
mypen.right(90)

mypen.begin_fill()
mypen.fillcolor("gold")
for i in range(5):
    mypen.forward(10)
    mypen.left(72)
    mypen.forward(10)
    mypen.right(144)
mypen.end_fill()

mypen.hideturtle()
turtle.done()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
Architect_海绵Architect_海绵

苏维埃万岁!!!

点赞0


评论


禁止挖坟后果自负禁止挖坟后果自负

你疯啦?这是苏维埃啊!

不是国旗!(我是波兰球和CH老司机)

点赞0


评论


芙兰朵露_斯卡雷特芙兰朵露_斯卡雷特

同志,大伊万!

center_image

center_image

点赞0


评论


`丶丶老※点点工作室※`丶丶老※点点工作室※

特别的棒,可以看出你花费了很多心思,希望你再接再厉,带给我们更多的好作品,展现你独特的青春风采emotion_编程猫_加油

点赞1


评论


比较大的大提琴比较大的大提琴

这不是俄罗斯联邦吗?

点赞0


评论


爵士OIer爵士OIer

那你用苏联的地图干嘛啊(

点赞0


评论


芙兰朵露_斯卡雷特芙兰朵露_斯卡雷特

center_image

点赞0


评论


禁止挖坟后果自负禁止挖坟后果自负

center_image宁应该要这张

点赞0


评论


禁止挖坟后果自负禁止挖坟后果自负

center_image它最好,我们要爱中国

点赞0


评论


禁止挖坟后果自负禁止挖坟后果自负

我被波兰球和CH污染着。

看到此贴,awsl。

 

点赞0


评论


禁止挖坟后果自负禁止挖坟后果自负

来,看你上面

https://shequ.codemao.cn/community/367773

点赞0


评论