【发布时间】:2013-10-27 15:36:55
【问题描述】:
Turtle.tracer 的具体用法是什么?在 python 文档中,它写成 Turn turtle animation on/off and set delay for update drawings. 我用它来禁用动画,但参数不清楚,例如在这段代码中,如果我使用 turtle.trace,turtle does not draw rest of table 如何设置正确的参数。
import turtle
turtle.width(5)
yd=xd=-64
turtle.tracer(8,25)#This is the problem
for i in range(2):
turtle.up()
turtle.goto(-197.5,yd)
turtle.down()
turtle.seth(0)
turtle.fd(394)
yd+=128
turtle.up()
turtle.goto(xd,197.5)
turtle.down()
turtle.seth(270)
turtle.fd(394)
xd+=128
【问题讨论】:
标签: python python-3.x turtle-graphics