def draw_arc(x,y,size): yanse = ['red','orange','yellow','green','cyan'] penup() goto(x,y) setheading(0) right(90) pendown() for _ in range(2): color( yanse[_] ) begin_fill() circle(size/2,90) end_fill() circle(size/2,-90) circle(-size/2,90) begin_fill() circle(-size/2,-90) end_fill() right(180)
李兴球
李兴球的博客是Python创意编程原创博客
要发表评论,您必须先登录。
发表评论