import random. import numpy as np. # create 2D array. the_array = np.arange( 16 ).reshape(( 4 , 4 )). # row manipulation. rows_id = random.sample( range ( 0 ...
確定! 回上一頁