scipy.sparse.dok_matrix.fromkeys

dok_matrix.fromkeys(iterable, value=None, /)

创建一个新字典,其中关键字来自可迭代,值设置为Value。