感觉numpy.hstack()和numpy.column_stack()函数略有相似,numpy.vstack()与numpy.row_stack()函数也是挺像的. stackoverflow上也有类似的讨论,在这里numpy vstack vs. column_stack. 给一个相关函数的列表: stack() Join a sequence of arrays along a new axis. hstack() Stack arrays in sequence horiz…
# -*- coding: utf-8 -*- """ 主要记录代码,相关说明采用注释形势,供日常总结.查阅使用,不定时更新. Created on Mon Aug 20 23:37:26 2018 @author: Dev """ import numpy as np from datetime import datetime import random 对a,b两个列表的相同位的元素进行运算求和: # 纯Python def…