import numpy as np from scipy.sparse import lil_matrix 使用numpy我得到 test_mat = (np.ones((4,6))) test_list = test_mat[0,:].tolist() 将test_list作为包含6个元素的列表.但是,我使用scipy.sparse test_mat = lil_matrix(np.ones( ...