scipy.sparse.dok_array. fromkeys# classmethod dok_array.fromkeys(iterable, value=1, /)[原始碼]# 建立一個新的字典,其鍵來自 iterable,值設定為 value。