IT入门 > 教程 > python >

  • Python3 asin() 函数

    日期:2022-09-11 18:27:28 点击:7719 好评:2

    描述 asin() 返回x的反正弦弧度值。 语法 以下是 asin() 方法的语法: import mathmath.asin(x) 注意: asin()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方法。 参数 x -...

  • Python3 atan() 函数

    日期:2022-09-11 18:27:28 点击:4356 好评:2

    描述 atan() 返回x的反正切弧度值。 语法 以下是 atan() 方法的语法: import mathmath.atan(x) 注意: atan()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方法。 参数 x -...

  • Python3 atan2() 函数

    日期:2022-09-11 18:27:28 点击:9394 好评:2

    描述 atan2() 返回给定的 X 及 Y 坐标值的反正切值。 语法 以下是 atan2() 方法的语法: import mathmath.atan2(y, x) 注意: atan2()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用...

  • Python3 cos() 函数

    日期:2022-09-11 18:27:28 点击:7408 好评:2

    描述 cos() 返回x的弧度的余弦值。 语法 以下是 cos() 方法的语法: import mathmath.cos(x) 注意: cos()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方法。 参数 x -- 一个...

  • Python3 hypot() 函数

    日期:2022-09-11 18:27:28 点击:5715 好评:2

    描述 hypot() 返回欧几里德范数 sqrt(x*x + y*y)。 语法 以下是 hypot() 方法的语法: import mathmath.hypot(x, y) 注意: hypot()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方...

  • Python3 sin() 函数

    日期:2022-09-11 18:27:28 点击:2558 好评:2

    描述 sin() 返回的x弧度的正弦值。 语法 以下是 sin() 方法的语法: import mathmath.sin(x) 注意: sin()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方法。 参数 x -- 一个...

  • Python3 tan() 函数

    日期:2022-09-11 18:27:28 点击:6797 好评:2

    描述 tan() 返回 x 弧度的正切值。 语法 以下是 tan() 方法的语法: import mathmath.tan(x) 注意: tan()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方法。 参数 x -- 一个...

  • Python3 degrees() 函数

    日期:2022-09-11 18:27:28 点击:2962 好评:2

    描述 degrees() 将弧度转换为角度。 语法 以下是 degrees() 方法的语法: import mathmath.degrees(x) 注意: degrees()是不能直接访问的,需要导入 math 模块,然后通过 math 静态对象调用该方法。 参数...

  • Python3 radians() 函数

    日期:2022-09-11 18:27:28 点击:3284 好评:2

    描述 radians() 方法将角度转换为弧度。 角度和弧度关系是:2π 弧度 = 360°。从而 1°≈0.0174533 弧度,1 弧度≈57.29578°。 1) 角度转换为弧度公式:弧度=角度÷180×π 2)弧度转换为角度公式:...

  • Python3 capitalize()方法

    日期:2022-09-11 18:27:28 点击:6755 好评:2

    描述 Python capitalize() 将字符串的第一个字母变成大写,其他字母变小写。 语法 capitalize() 方法语法: str.capitalize() 参数 无。 返回值 该方法返回一个首字母大写的字符串。 实例 以下实...

广告位API接口通信错误,查看德得广告获取帮助