一、实用包导入
time_show.py
1 | import datetime |
data_loading.py
1 | import numpy as np |
二、实战(jupyter)















三、.py
data_loading.py 上面有
time_show.py 上面有
data_simulation.py
1 | from time_show import * |




四、总结
4.1 主函数入口
1 | if __name__ == "__main__": |
4.2 保存 numpy 数组的方法
1 | if os.path.exists('X.npy'): |
4.2 numpy 操作
1 | # numpy 取平均值 |
4.3 python导出excel文件
1 | import xlwt |