本章介绍的模块提供与数字和数学相关的函数和数据类型。
numbers
模块定义了数字类型的抽象层次结构。
math
和
cmath
模块包含浮点数和复数的各种数学函数。
decimal
模块支持使用任意精度算术的十进制数的精确表示。
本章记录以下模块:
numbers
--- 数字的抽象基类
math
--- 数学函数
cmath
--- 关于复数的数学函数
decimal
--- 十进制定点和浮点运算
fractions
--- 分数
random
--- 生成伪随机数
statistics
--- 数学统计函数
NormalDist
对象
NormalDist
示例和用法
文章来源互联网,如有侵权,请联系管理员删除。邮箱:417803890@qq.com / QQ:417803890
Python Free
邮箱:417803890@qq.com
QQ:417803890
皖ICP备19001818号
© 2019 copyright www.pythonf.cn - All rights reserved
微信扫一扫关注公众号:
Python Free