新手求助,python入门,照着图中老师的代码抄,为啥还是运行不了??下面是我写的,但是显示AttributeError: module 'turtle' has no attribute 'range'
import turtle
import time
turtle.pensize(2)
turtle.bgcolor("black")
colors = ["red","yellow",'purple','blue']
turtle.tracer(False)
for x in range(400):
turtle.range(400)
turtle.color(colors[x%4])
turtle.left(91)
turtle.tracer(True)