報錯:module ‘numpy’ has no attribute 'array’ 可是numpy子產品裡面明明是有array函數的呗… 這種情況 很可能是你… python檔案名和導入的庫重名 了!! 這樣會導緻導入錯誤! 切忌此小而緻命的錯誤!