import numpy as np # 创建一维数组 # #基于list arr1 = np. array([ 1, 2, 3, 4]) print( arr1) # 基于tuple arr_tuple = np. array(( 1, 2, 3, 4))
確定! 回上一頁