python 報錯 TypeError: 'module' object is not callable

原因分析: Python導入模塊的方法有兩種: import module 和 from module import * 區別是前者所有導入的東西使用時需加上模塊名的限定,而後者則不需要 如圖,若是方式1導入後直接報 TypeError: ‘module’ object is not callable 解決方法:
相關文章
相關標籤/搜索