Python标准模块——math
来源:互联网 发布:f22到底有多先进知乎 编辑:程序博客网 时间:2024/06/10 10:18
9、 math
实数
floor(x):向下取整,但返回的不是整数,而是浮点数
ceil(x):向上取整,返回值为float
sqrt(x):求根值,返回值为float
>>>import math>>>math.floor(2.3)2.0
复数
>>>import cmath>>>cmath.sqrt(-1)1j
0 0
- Python标准模块——math
- [python标准库]math——数学函数
- python手册项目四——math模块方法等等
- Python标准库——os模块
- Python 标准库 —— os 模块
- Python标准模块——sys
- Python标准模块——os
- Python标准模块——glob
- Python标准模块——tempfile
- Python标准模块——shlex
- Python标准模块——subprocess
- Python标准模块——PIL
- Python标准模块——xml
- python标准模块——time
- Python标准模块——gzip
- Python标准模块——__future__
- Python标准模块——argparse
- Python标准模块——pickle
- 软件工程导复习分析(简化版,不够详细,有干货)
- 快速排序
- 哈夫曼树
- Python标准模块——xml
- 使用protobuf(c++)的构建通用的数据系统(转)
- Python标准模块——math
- 辗转相除法
- Codeforces 460B Little Dima and Equation【思维+暴力】
- 最长严格上升子序列
- VS2010调试运行正常,直接exe运行错误问题
- Java中ArrayList类的用法
- java.lang.ClassNotFoundException: com.epoint.servlet.WelcomeServlet
- 微博&微信&QQ等开发者平台注册应用时提交签名信息的坑点。
- JDK旧版本下载地址