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