1、列錶轉一維數組. a = list([1,2,3]) 或a = [1,2,3]. 轉一維數組:. b = array(a). 2、一維數組轉二維數組. 方法1: 使用numpy.newaxis.
確定! 回上一頁