报错:module ‘numpy’ has no attribute 'array’ 可是numpy模块里面明明是有array函数的呗… 这种情况 很可能是你… python文件名和导入的库重名 了!! 这样会导致导入错误! 切忌此小而致命的错误!