如果是想要單純分割文字串(str)的話可以使用split()。 ... 7, 8, 9, 10] result = list(np.array_split(l, 3)) print(result) #[array([1, 2, 3, 4]), ...
確定! 回上一頁