三、画笔控制函数
1、turtle.penup() 别名turtle.pu() 画笔抬起,不留下痕迹
2、turtle.pendown() 别名turtle.pd() 画笔落下,留下痕迹
3、turtle.pensize(width) 别名turtle.width(width) 画笔宽度
4、turtle.pencolor(color)
color为颜色字符串或者rgb值
eg:turtle.pencolor("purple")颜色字符串
turtle.pencolor(0.63,0.13,0.94)RGB的小数值
turtle.pencolor((0.63,0.13,0.94))RGB的元组值
四、运动控制函数
1、turtle.forword(d) 别名turtle.fd(d) 向前行进
d:行进距离,可以为负数
2、turtle.circle(r,extent=None)
根据半径r,绘制一个extent角度的弧度
r:默认圆心在海龟左侧r距离的位置
五、方向控制函数
1、turtle.setheading(angle) 别名turtle.seth(angle) 改变行进方向
2、angle:改变方向的角度(绝对坐标下,绝对角度)
3、turtle.left(angle)
4、turtle.right(angle)
angle:当前方向上转过得角度(海龟角度)
以上就是Python中seth是什么的详细内容,更多文章请关注木庄网络博客!!
相关阅读 >>
Python中json模块和pickle模块的简单介绍(附示例)
利用Python执行shell脚本 并动态传参 及subprocess基本使用
更多相关阅读请进入《Python》频道 >>

Python编程 从入门到实践 第2版
python入门书籍,非常畅销,超高好评,python官方公认好书。