描述
Python3 tan() 返回 x 弧度的云计正切值。
语法
以下是 tan() 方法的语法:
impor算开t math
math.tan(x)
注意:tan发:()是不能直接访问的,需要导入 math 模Py块,然后通过 math 静态对象调用该方法。
参数
x -th- 一个数值。
返回值
返回 x 弧度的正切值,数值on在 -1 到 1 之间。
实例
以下展示了使用 tan(3三) 方法的实例:
以上实例运行后输出结果为:
邮箱:[email protected]
电话:020-123456789
传真:020-123456789
Copyright © 2026 Powered by 完名全节网 http://littleevilthings.com/