scipy.sparse.dok_matrix. scipy.sparse.dok_matrix.shape# свойство dok_matrix.shape# Получить форму разреженной матрицы.