# -*- coding: UTF-8 -*- from numpy import* a = arange(3*3).reshape(3,3) b = arange(3*3).reshape(3,3) c = hstack((a,b))#水平组合 d = vstack((a,b))#垂直组合 #hsplit水平分割vsplit竖直分割 print c,d
时间: 2024-10-05 11:51:51
# -*- coding: UTF-8 -*- from numpy import* a = arange(3*3).reshape(3,3) b = arange(3*3).reshape(3,3) c = hstack((a,b))#水平组合 d = vstack((a,b))#垂直组合 #hsplit水平分割vsplit竖直分割 print c,d