香港特别行政区区旗怎么画

太难了,画不出来,网上搜索的只有国旗的搜索结果。

就是循环5次,画5个花瓣,用turtle 应该好画
你题目的解答代码如下:

import turtle

turtle.setup(1100,800,100,100)
turtle.hideturtle()#隐藏小海龟
turtle.speed(0)

turtle.fillcolor("red")
turtle.pencolor("red")
turtle.up()
turtle.goto(-480,320)
turtle.down()
turtle.begin_fill()
for i in range(2):
    turtle.forward(960)
    turtle.right(90)
    turtle.forward(640)
    turtle.right(90)
turtle.end_fill()

turtle.fillcolor("white")
turtle.pencolor("white")
for i in range(5):
    turtle.up()
    turtle.goto(0,0)
    turtle.seth(90+i*72)
    turtle.down()
    turtle.begin_fill()
    turtle.left(63)
    turtle.circle(-160,144)
    turtle.right(145)
    turtle.circle(70,80)
    turtle.circle(-70,90)
    turtle.circle(80,90)
    turtle.end_fill()

turtle.fillcolor("red")
turtle.pencolor("red")

for i in range(5):
    turtle.up()
    turtle.goto(0,0)
    turtle.seth(90+i*72)
    turtle.down()
    turtle.left(52)
    turtle.pensize(5)
    turtle.circle(-110,80)
    turtle.pensize(1)
    turtle.up()
    turtle.forward(50)
    turtle.right(162)
    turtle.down()
    turtle.begin_fill()
    for j in range(5):
        turtle.forward(50)
        turtle.right(144)
    turtle.end_fill()

turtle.done()

img

如有帮助,请点击我的回答下方的【采纳该答案】按钮帮忙采纳下,谢谢!

img