Python3 degrees 将弧度转换为角度

2022-08-02 10:44:36

描述

Python3 degrees() 将弧度转换为角度。

语法

以下是 degrees() 方法语法:

import math

math.degrees(x)

注意:degrees()不能直接访问,需要导入 math 然后通过模块 math 静态对象调用此方法。

参数

x -- 一个数值。

返回值

返回角度值。

实例

使用情况如下 degrees() 方法的实例:

运行后输出结果如下: