Python Chapter Seven After-Class Exercises plus (4)

Change the two lists a and b to ndarray type and connect them. Data with small dimensions comes first, and data with large dimensions comes after. Adjust the array with the smaller dimension to have the same shape as the array with the larger dimension, and then connect according to the last dimension of the larger dimension data, and return the connected ndarray. If it cannot be connected, return an empty array np.array([])
prompt: np.concatenate

还没写出来

Guess you like

Origin blog.csdn.net/qq_53029299/article/details/115279712