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])
本文标题:【Python|Numpy】array v.s. empty
本文链接:https://www.haomeiwen.com/subject/hletsdtx.html
网友评论