用函数定义画五个五角星 python小案例 import turtle turtle.setup(600, 400) turtle.color("yellow") turtle.bgcolor("red") turtle.fillcolor("yellow") turtle.speed(10) def turtle_goto(x, y): turtle.up() turtle.goto(x, y) turtle.down()
1