Python : Turtle绘图-绿勋章(代码)2022-06-18 14:48:12import turtle import time 同时设置pencolor=color1, fillcolor=color2 turtle.color(“red”,“green”) turtle.speed(10) turtle.begin_fill() for i in range(100): turtle.forward(200) turtle.left(170) turtle.end_fill() turtle.mainloop() 上一篇:Python : Turtle绘图-多边形(代码)下一篇:01 Hello World!