Python中的数学函数1

时间:2026-02-12 17:51:17

1、abs():返回数字的绝对值,如abs(-1) 返回 1。

Python中的数学函数1

Python中的数学函数1

2、ceil():返回数字的上入整数,如math.ceil(0.1) 返回 1。

Python中的数学函数1

Python中的数学函数1

3、lt(a,b):两个变量比较,a<b返回True,否则False。

Python中的数学函数1

Python中的数学函数1

4、exp():返回e的x次幂,如math.exp(2) 返回7.38905609893065。

Python中的数学函数1

Python中的数学函数1

© 2026 一点知道
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com