Python 中的软件工程原理
Adam Spannbauer
Machine Learning Engineer at Eastman



datacamp@server:~$ pip install numpy
Collecting numpy
100% |████████████████████████████████| 24.5MB 44kB/s
Installing collected packages: numpy
Successfully installed numpy-1.15.4

help(numpy.busday_count)
busday_count(begindates, enddates) 统计 `begindates` 与 `enddates` 之间的有效天数, 不含 `enddates` 当天。Parameters ---------- begindates : 计数起始日期。 enddates : 计数结束日期(不包含)。Returns ------- out : 起始与结束日期之间的有效天数。Examples -------- >>> # 2011 年的工作日数 ... np.busday_count('2011', '2012') 260
import numpy as np
help(np)
提供:
1. 同质项数组对象
2. 针对数组的高速数学运算
3. 线性代数、傅里叶变换、随机数生成
help(42)
class int(object)
| int(x=0) -> integer
| int(x, base=10) -> integer
|
| 将数字或字符串转为整数;无参数时返回 0。若 x 为数字,返回 x.__int__()。
| 对浮点数,向零截断。
Python 中的软件工程原理