Python 蟒蛇向右转
在Python中,有没有办法将Python 蟒蛇向右转,python,Python,在Python中,有没有办法将turtle向右(向东)旋转,而不管turtle朝哪个方向 非常感谢您在帮助页面上提供的帮助帮助(海龟) 获取电流并计算所需的旋转。 | setheading(self, to_angle) | Set the orientation of the turtle to to_angle. | | Aliases: setheading | seth | | Argument: | to
turtle
向右(向东)旋转,而不管turtle
朝哪个方向
非常感谢您在帮助页面上提供的帮助
帮助(海龟)
获取电流并计算所需的旋转。
| setheading(self, to_angle)
| Set the orientation of the turtle to to_angle.
|
| Aliases: setheading | seth
|
| Argument:
| to_angle -- a number (integer or float)
|
| Set the orientation of the turtle to to_angle.
| Here are some common directions in degrees:
|
| standard - mode: logo-mode:
| -------------------|--------------------
| 0 - east 0 - north
| 90 - north 90 - east
| 180 - west 180 - south
| 270 - south 270 - west
|
| Example (for a Turtle instance named turtle):
| >>> turtle.setheading(90)
| >>> turtle.heading()
| 90