📜  python turtle 中的弧度 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.053000             🧑  作者: Mango

代码示例1
import turtle
t = turtle.Turtle()

# Using Radians
t.radians() # 1 Radian = 180/ PI degrees

# Using Degrees
t.degrees() # 1 Degrees = PI /180 radians

t.leftturn(100) # This integer value will turn the turtle differently depending
# on if the turtle is using degrees() or radians()