Python : Turtle绘图-绿勋章(代码)
作者:互联网
import 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()
标签:Turtle,turtle,Python,mainloop,color,绘图,import,speed,fill 来源: https://blog.csdn.net/weixin_44523387/article/details/94555234