代码点读机 / Python / turtle.right

turtle.right Python · 模块功能

让小海龟右转指定角度。

怎么用

import turtle
turtle.right(angle)

小例子

import turtle
turtle.right(90)
print('右转90度')

运行结果

右转90度

提醒:以度为单位。

官方文档:https://docs.python.org/zh-cn/3/library/turtle.html#turtle.right

在代码里遇到不认识的词?打开代码点读机,点一下就懂 → ← Python全部词条