具体内容如下所示:





参考案例:
import turtle
d=0
for i in range(4):
turtle.fd(200) #或者写成turtle.forward(200)
d =d+90
turtle.seth(d) #改变角度,可以写成turtle。setheading(to_angle)

总结
以上所述是小编给大家介绍的python中的turtle库函数简单使用教程,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!