宣告全部是1 的array 同樣可以使用dtype 定義資料型態 ones = np.ones( (4,3), ... 0.14324946148 # 求矩陣元素最大值 print(np.max(a)) # 0.837046196628.
確定! 回上一頁