pkgutil.iter_modules() 裡面要帶一個list 參數,表示要搜尋的路徑列表, ... 模組,就用pkgutil.iter_modules([“tool”]),傳回值是一個generator:.
確定! 回上一頁