雖然Python 本身是動態定型語言,然而NumPy 為了效能,陣列的元素會定義型態,如果不指定,NumPy ... import numpy as np >>> a1 = np.array([1, 2, 3]) >>> a1.dtype ...
確定! 回上一頁