海龟作图
import turtle
t = turtle.Pen() #use t to instead of turtle.Pen()
colors = ["red", "yellow", "blue", "green"] #Change the pen color
#Then you can use circulation to form your shape.
#There is an example:
for x in range (100):
t.pencolor(colors[x%4])
t.forward(x)
t.left(91)
#Run this code, you can see a beautiful shape