【Python|Numpy】array v.s. empty
2023-05-03 本文已影响0人
盐果儿
import numpy as np
# The input is the shape of the data
a = np.empty((2,3))
# The input is the list that needed to convert into numpy array
b = np.array([1,2,3])
import numpy as np
# The input is the shape of the data
a = np.empty((2,3))
# The input is the list that needed to convert into numpy array
b = np.array([1,2,3])