


turtle.setup(启动窗口自身高度, 宽度, 启动窗口左上角坐标位置)



turtle.goto(x, y)到达坐标位置



turtle.fd()正前方turtle.forward(距离)直线

turtle.bk()反方向运行
turtle.circle(圆形轨迹半径位置, 圆形弧度值)曲线运行,左手侧r距离开始以弧形运动。



turtle.seth(运行方向角度)负值表示相反









turtle.pencolor('运行轨迹颜色')


turtle.done()不退出,手动关闭窗体退出。不加这行代码,自动退出。
turtle.hideturtle()隐藏画笔的turtle形状
网友评论