scipy.sparse.dok_matrix. fromkeys# classmethod dok_matrix.fromkeys(iterable, value=1, /)[source]# 创建一个新字典,其键来自 iterable,值设置为 value。