(五)python學習筆記之numpy快速入門程序

numpy官方的快速入門指導網站 https://docs.scipy.org/doc/numpy/user/quickstart.htmlhtml import numpy as np a = np.arange(15).reshape(3, 5) # 建立一個0到15的,3行5列的對象 print(a) # 軸數 print(a.ndim) # 各軸維數 print(a.shape) #
相關文章
相關標籤/搜索