绘制花朵

代码:

from turtle import*
speed(0)
pensize(5)                                    
color("red")
def huatu(n):
    for i in range(n):
        forward(150)
        left(360/n)
def huatus(m):
    for j in range(m):
        huatu(7)
        left(360/m)
huatus(20)        


文章内容属作者个人观点,不代表本站立场,如有侵权立删。

   口袋儿题库-青少儿编程自测题库