math 模块描述 math.isinf() 方法判断 x 是否是无穷大,如果 x 是正或负无穷大,则返回 True ,否则返回 False 。语法math.isinf() 方法语法如下:math.isinf(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。返回值返回一...
https://www.w3cschool.cn/python3/ref-math-isinf.htmlmath 模块描述math.ldexp(x, i) 方法返回 x * (2**i),是math.frexp() 的反函数。语法math.ldexp() 方法语法如下:math.ldexp(x, i)参数说明:x -- 必需,一个正数或负数。如果值不是数字,则返回 TypeError。i -- 必需,一个正数或负数。如果值不是...
https://www.w3cschool.cn/python3/ref-math-ldexp.htmlmath 模块描述 math.log(x) 方法使用一个参数,返回 x 的对数(默认情况下底为 e,可以通过传递第二个参数(base)来改变底的值 )。语法math.log() 方法语法如下:math.log(x[, base])参数说明:x -- 必需,数字。如果 x 不是一个数字,...
https://www.w3cschool.cn/python3/ref-math-log.htmlmath 模块描述 math.log10(x) 方法返回 x 以 10 为底的对数。语法math.log10() 方法语法如下:math.log10(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果值为 0 或负数,则返回 ValueError。返回值返回一个整数浮点数...
https://www.w3cschool.cn/python3/ref-math-log10.htmlmath 模块描述 math.log1p(x) 方法返回 1+x 的自然对数(以 e 为底)。语法math.log1p() 方法语法如下:math.log1p(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果值为 0 或负数,则返回 ValueError。返回值返回一个...
https://www.w3cschool.cn/python3/ref-math-log1p.htmlmath 模块描述 math.log2(x) 方法返回 x 以 2 为底的对数。语法math.log2() 方法语法如下:math.log2(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果值为 0 或负数,则返回 ValueError。返回值返回一个整数浮点数 flo...
https://www.w3cschool.cn/python3/ref-math-log2.htmlmath 模块描述math.sin(x) 返回 x 弧度的正弦值。要获取指定角度的正弦,必须首先使用 math.radians() 方法将其转换为弧度。语法math.sin() 方法语法如下:math.sin(x)参数说明:x -- 必需,数字。如果 x 不是数字,则返回 TypeError。返回值...
https://www.w3cschool.cn/python3/ref-math-sin.htmlmath 模块描述math.sinh(x) 返回 x 的双曲正弦值。语法math.sinh() 方法语法如下:math.sinh(x)参数说明:x -- 必需,个正数或负数。如果 x 不是一个数字,返回 TypeError。返回值返回一个浮点数,表示一个数字的双曲正弦值。实例以下实...
https://www.w3cschool.cn/python3/ref-math-sinh.htmlmath 模块描述math.sqrt(x) 方法返回 x 的平方根。数字必须大于等于 0。语法math.sqrt() 方法语法如下:math.sqrt(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果数字小于 0,则返回 ValueError。返回值返回一个浮...
https://www.w3cschool.cn/python3/ref-math-sqrt.htmlmath 模块描述math.tanh(x) 返回 x 的双曲正切值。语法math.tanh() 方法语法如下:math.tanh(x)参数说明:x -- 必需,个正数或负数。如果 x 不是一个数字,返回 TypeError。返回值返回一个浮点数,表示一个数字的双曲正切值。实例以下实...
https://www.w3cschool.cn/python3/ref-math-tanh.html抱歉,暂时没有相关的微课
w3cschool 建议您:
抱歉,暂时没有相关的视频课程
w3cschool 建议您:
抱歉,暂时没有相关的教程
w3cschool 建议您:
math 模块描述 math.isinf() 方法判断 x 是否是无穷大,如果 x 是正或负无穷大,则返回 True ,否则返回 False 。语法math.isinf() 方法语法如下:math.isinf(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。返回值返回一...
https://www.w3cschool.cn/python3/ref-math-isinf.htmlmath 模块描述math.ldexp(x, i) 方法返回 x * (2**i),是math.frexp() 的反函数。语法math.ldexp() 方法语法如下:math.ldexp(x, i)参数说明:x -- 必需,一个正数或负数。如果值不是数字,则返回 TypeError。i -- 必需,一个正数或负数。如果值不是...
https://www.w3cschool.cn/python3/ref-math-ldexp.htmlmath 模块描述 math.log(x) 方法使用一个参数,返回 x 的对数(默认情况下底为 e,可以通过传递第二个参数(base)来改变底的值 )。语法math.log() 方法语法如下:math.log(x[, base])参数说明:x -- 必需,数字。如果 x 不是一个数字,...
https://www.w3cschool.cn/python3/ref-math-log.htmlmath 模块描述 math.log10(x) 方法返回 x 以 10 为底的对数。语法math.log10() 方法语法如下:math.log10(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果值为 0 或负数,则返回 ValueError。返回值返回一个整数浮点数...
https://www.w3cschool.cn/python3/ref-math-log10.htmlmath 模块描述 math.log1p(x) 方法返回 1+x 的自然对数(以 e 为底)。语法math.log1p() 方法语法如下:math.log1p(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果值为 0 或负数,则返回 ValueError。返回值返回一个...
https://www.w3cschool.cn/python3/ref-math-log1p.htmlmath 模块描述 math.log2(x) 方法返回 x 以 2 为底的对数。语法math.log2() 方法语法如下:math.log2(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果值为 0 或负数,则返回 ValueError。返回值返回一个整数浮点数 flo...
https://www.w3cschool.cn/python3/ref-math-log2.htmlmath 模块描述math.sin(x) 返回 x 弧度的正弦值。要获取指定角度的正弦,必须首先使用 math.radians() 方法将其转换为弧度。语法math.sin() 方法语法如下:math.sin(x)参数说明:x -- 必需,数字。如果 x 不是数字,则返回 TypeError。返回值...
https://www.w3cschool.cn/python3/ref-math-sin.htmlmath 模块描述math.sinh(x) 返回 x 的双曲正弦值。语法math.sinh() 方法语法如下:math.sinh(x)参数说明:x -- 必需,个正数或负数。如果 x 不是一个数字,返回 TypeError。返回值返回一个浮点数,表示一个数字的双曲正弦值。实例以下实...
https://www.w3cschool.cn/python3/ref-math-sinh.htmlmath 模块描述math.sqrt(x) 方法返回 x 的平方根。数字必须大于等于 0。语法math.sqrt() 方法语法如下:math.sqrt(x)参数说明:x -- 必需,数字。如果 x 不是一个数字,返回 TypeError。如果数字小于 0,则返回 ValueError。返回值返回一个浮...
https://www.w3cschool.cn/python3/ref-math-sqrt.htmlmath 模块描述math.tanh(x) 返回 x 的双曲正切值。语法math.tanh() 方法语法如下:math.tanh(x)参数说明:x -- 必需,个正数或负数。如果 x 不是一个数字,返回 TypeError。返回值返回一个浮点数,表示一个数字的双曲正切值。实例以下实...
https://www.w3cschool.cn/python3/ref-math-tanh.html