行合并:np.row_stack()
列合并:np.column_stack()
np.reshape
求范数: np.linalg.norm
format用法
split()[1]
os.mkdir()
strip() & rstrip()
删除为1的维度
b = np.squeeze(a) # 删除为1的维度
np.where()
result = np.where(condition, x, y)
行合并:np.row_stack()
列合并:np.column_stack()
np.reshape
求范数: np.linalg.norm
format用法
split()[1]
os.mkdir()
strip() & rstrip()
b = np.squeeze(a) # 删除为1的维度
result = np.where(condition, x, y)