为什么在python中发生此AttributeError?
发布于 2021-01-29 18:39:59
有一件我不理解的事情。
为什么这样
import scipy # happens with several other modules, too. I took scipy as an example now...
matrix = scipy.sparse.coo_matrix(some_params)
产生此错误:
AttributeError: 'module' object has no attribute 'sparse'
关注者
0
被浏览
44
1 个回答