看图编函数练习Python张大嘴巴的吃豆人?
12月 8, 2021
0 Comments

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)