René's URL Explorer Experiment


Title: 5. 模組引入系統 — Python 3.14.0 說明文件

direct link

Domain: python.github.io

readthedocs-addons-api-version1

Links:

https://www.python.org/
目錄https://python.github.io/python-docs-zh-tw/contents.html
5. 模組引入系統https://python.github.io/python-docs-zh-tw/reference/import.html
5.1. importlibhttps://python.github.io/python-docs-zh-tw/reference/import.html#importlib
5.2. 套件https://python.github.io/python-docs-zh-tw/reference/import.html#packages
5.2.1. 一般套件https://python.github.io/python-docs-zh-tw/reference/import.html#regular-packages
5.2.2. 命名空間套件https://python.github.io/python-docs-zh-tw/reference/import.html#namespace-packages
5.3. 搜尋https://python.github.io/python-docs-zh-tw/reference/import.html#searching
5.3.1. 模組快取https://python.github.io/python-docs-zh-tw/reference/import.html#the-module-cache
5.3.2. 尋檢器 (Finder) 與載入器 (Loader)https://python.github.io/python-docs-zh-tw/reference/import.html#finders-and-loaders
5.3.3. 引入掛鉤 (Import hooks)https://python.github.io/python-docs-zh-tw/reference/import.html#import-hooks
5.3.4. 元路徑https://python.github.io/python-docs-zh-tw/reference/import.html#the-meta-path
5.4. 載入https://python.github.io/python-docs-zh-tw/reference/import.html#loading
5.4.1. 載入器https://python.github.io/python-docs-zh-tw/reference/import.html#loaders
5.4.2. 子模組https://python.github.io/python-docs-zh-tw/reference/import.html#submodules
5.4.3. 模組規格https://python.github.io/python-docs-zh-tw/reference/import.html#module-specs
5.4.4. __path__ attributes on moduleshttps://python.github.io/python-docs-zh-tw/reference/import.html#path-attributes-on-modules
5.4.5. Module reprshttps://python.github.io/python-docs-zh-tw/reference/import.html#module-reprs
5.4.6. Cached bytecode invalidationhttps://python.github.io/python-docs-zh-tw/reference/import.html#cached-bytecode-invalidation
5.5. The Path Based Finderhttps://python.github.io/python-docs-zh-tw/reference/import.html#the-path-based-finder
5.5.1. Path entry findershttps://python.github.io/python-docs-zh-tw/reference/import.html#path-entry-finders
5.5.2. Path entry finder protocolhttps://python.github.io/python-docs-zh-tw/reference/import.html#path-entry-finder-protocol
5.6. Replacing the standard import systemhttps://python.github.io/python-docs-zh-tw/reference/import.html#replacing-the-standard-import-system
5.7. Package Relative Importshttps://python.github.io/python-docs-zh-tw/reference/import.html#package-relative-imports
5.8. Special considerations for __main__https://python.github.io/python-docs-zh-tw/reference/import.html#special-considerations-for-main
5.8.1. __main__.__spec__https://python.github.io/python-docs-zh-tw/reference/import.html#main-spec
5.9. Referenceshttps://python.github.io/python-docs-zh-tw/reference/import.html#references
4. 執行模型https://python.github.io/python-docs-zh-tw/reference/executionmodel.html
6. 運算式https://python.github.io/python-docs-zh-tw/reference/expressions.html
回報錯誤https://python.github.io/python-docs-zh-tw/bugs.html
顯示原始碼 https://github.com/python/cpython/blob/main/Doc/reference/import.rst?plain=1
索引https://python.github.io/python-docs-zh-tw/genindex.html
模組https://python.github.io/python-docs-zh-tw/py-modindex.html
下一頁https://python.github.io/python-docs-zh-tw/reference/expressions.html
上一頁https://python.github.io/python-docs-zh-tw/reference/executionmodel.html
Pythonhttps://www.python.org/
3.14.0 Documentationhttps://python.github.io/python-docs-zh-tw/index.html
Python 語言參考手冊https://python.github.io/python-docs-zh-tw/reference/index.html
5. 模組引入系統https://python.github.io/python-docs-zh-tw/reference/import.html
https://python.github.io/python-docs-zh-tw/reference/import.html#the-import-system
modulehttps://python.github.io/python-docs-zh-tw/glossary.html#term-module
importinghttps://python.github.io/python-docs-zh-tw/glossary.html#term-importing
importhttps://python.github.io/python-docs-zh-tw/reference/simple_stmts.html#import
importlib.import_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.import_module
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
importhttps://python.github.io/python-docs-zh-tw/reference/simple_stmts.html#import
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
importhttps://python.github.io/python-docs-zh-tw/reference/simple_stmts.html#import
importhttps://python.github.io/python-docs-zh-tw/reference/simple_stmts.html#import
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
importlib.import_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.import_module
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
[1]https://python.github.io/python-docs-zh-tw/reference/import.html#fnmo
ModuleNotFoundErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ModuleNotFoundError
PEP 302https://peps.python.org/pep-0302/
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
PEP 420https://peps.python.org/pep-0420/
importlibhttps://python.github.io/python-docs-zh-tw/library/importlib.html#module-importlib
https://python.github.io/python-docs-zh-tw/reference/import.html#importlib
importlibhttps://python.github.io/python-docs-zh-tw/library/importlib.html#module-importlib
importlib.import_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.import_module
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
importlibhttps://python.github.io/python-docs-zh-tw/library/importlib.html#module-importlib
https://python.github.io/python-docs-zh-tw/reference/import.html#packages
套件https://python.github.io/python-docs-zh-tw/glossary.html#term-package
emailhttps://python.github.io/python-docs-zh-tw/library/email.html#module-email
email.mimehttps://python.github.io/python-docs-zh-tw/library/email.mime.html#module-email.mime
email.mime.texthttps://python.github.io/python-docs-zh-tw/library/email.mime.html#module-email.mime.text
https://python.github.io/python-docs-zh-tw/reference/import.html#regular-packages
一般套件https://python.github.io/python-docs-zh-tw/glossary.html#term-regular-package
命名空間套件https://python.github.io/python-docs-zh-tw/glossary.html#term-namespace-package
https://python.github.io/python-docs-zh-tw/reference/import.html#namespace-packages
部分https://python.github.io/python-docs-zh-tw/glossary.html#term-portion
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
PEP 420https://peps.python.org/pep-0420/
https://python.github.io/python-docs-zh-tw/reference/import.html#searching
限定名稱 (qualified name)https://python.github.io/python-docs-zh-tw/glossary.html#term-qualified-name
importhttps://python.github.io/python-docs-zh-tw/reference/simple_stmts.html#import
importlib.import_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.import_module
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
ModuleNotFoundErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ModuleNotFoundError
https://python.github.io/python-docs-zh-tw/reference/import.html#the-module-cache
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
ModuleNotFoundErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ModuleNotFoundError
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
ModuleNotFoundErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ModuleNotFoundError
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
importlib.reload()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.reload
https://python.github.io/python-docs-zh-tw/reference/import.html#finders-and-loaders
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
尋檢器https://python.github.io/python-docs-zh-tw/glossary.html#term-finder
載入器https://python.github.io/python-docs-zh-tw/glossary.html#term-loader
引入器 (importer)https://python.github.io/python-docs-zh-tw/glossary.html#term-importer
import pathhttps://python.github.io/python-docs-zh-tw/glossary.html#term-import-path
import pathhttps://python.github.io/python-docs-zh-tw/glossary.html#term-import-path
載入器https://python.github.io/python-docs-zh-tw/glossary.html#term-loader
https://python.github.io/python-docs-zh-tw/reference/import.html#import-hooks
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
sys.path_hookshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_hooks
https://python.github.io/python-docs-zh-tw/reference/import.html#the-meta-path
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
ModuleNotFoundErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ModuleNotFoundError
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
ModuleNotFoundErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ModuleNotFoundError
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
import pathhttps://python.github.io/python-docs-zh-tw/glossary.html#term-import-path
path based finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-based-finder
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
ImportWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportWarning
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
https://python.github.io/python-docs-zh-tw/reference/import.html#loading
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
之後的段落https://python.github.io/python-docs-zh-tw/reference/datamodel.html#import-mod-attrs
[2]https://python.github.io/python-docs-zh-tw/reference/import.html#fnlo
importlib.abc.Loader.load_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.load_module
https://python.github.io/python-docs-zh-tw/reference/import.html#loaders
importlib.abc.Loader.exec_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.exec_module
exec_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.exec_module
ImportErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportError
exec_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.exec_module
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
create_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.create_module
create_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.create_module
load_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.load_module
exec_module()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.Loader.exec_module
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
importlib.reload()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.reload
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
DeprecationWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#DeprecationWarning
ImportErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportError
ImportWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportWarning
https://python.github.io/python-docs-zh-tw/reference/import.html#submodules
https://python.github.io/python-docs-zh-tw/reference/import.html#module-specs
module.__spec__https://python.github.io/python-docs-zh-tw/reference/datamodel.html#module.__spec__
在直譯器啟動期間初始化的模組https://python.github.io/python-docs-zh-tw/reference/toplevel_components.html#programs
在某些情況下被設定成 Nonehttps://python.github.io/python-docs-zh-tw/reference/import.html#main-spec
ModuleSpechttps://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.machinery.ModuleSpec
https://python.github.io/python-docs-zh-tw/reference/import.html#path-attributes-on-modules
__path__https://python.github.io/python-docs-zh-tw/reference/datamodel.html#module.__path__
sequencehttps://python.github.io/python-docs-zh-tw/glossary.html#term-sequence
packagehttps://python.github.io/python-docs-zh-tw/glossary.html#term-package
__path__https://python.github.io/python-docs-zh-tw/reference/datamodel.html#module.__path__
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
sys.path_hookshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_hooks
__path__https://python.github.io/python-docs-zh-tw/reference/datamodel.html#module.__path__
PEP 420https://peps.python.org/pep-0420/
PEP 420https://peps.python.org/pep-0420/
https://python.github.io/python-docs-zh-tw/reference/import.html#module-reprs
https://python.github.io/python-docs-zh-tw/reference/import.html#cached-bytecode-invalidation
--check-hash-based-pycshttps://python.github.io/python-docs-zh-tw/using/cmdline.html#cmdoption-check-hash-based-pycs
https://python.github.io/python-docs-zh-tw/reference/import.html#the-path-based-finder
path based finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-based-finder
PathFinderhttps://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.machinery.PathFinder
import pathhttps://python.github.io/python-docs-zh-tw/glossary.html#term-import-path
path entrieshttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry
zipimporthttps://python.github.io/python-docs-zh-tw/library/zipimport.html#module-zipimport
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
meta path finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-meta-path-finder
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
https://python.github.io/python-docs-zh-tw/reference/import.html#path-entry-finders
path based finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-based-finder
path entryhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry
path based finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-based-finder
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
import pathhttps://python.github.io/python-docs-zh-tw/glossary.html#term-import-path
path based finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-based-finder
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
sys.path_hookshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_hooks
sys.path_importer_cachehttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_importer_cache
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
PYTHONPATHhttps://python.github.io/python-docs-zh-tw/using/cmdline.html#envvar-PYTHONPATH
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
sitehttps://python.github.io/python-docs-zh-tw/library/site.html#module-site
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
path based finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-based-finder
meta path finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-meta-path-finder
import pathhttps://python.github.io/python-docs-zh-tw/glossary.html#term-import-path
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.machinery.PathFinder.find_spec
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.machinery.PathFinder.find_spec
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
PathEntryFinderhttps://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.PathEntryFinder
sys.path_importer_cachehttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_importer_cache
importerhttps://python.github.io/python-docs-zh-tw/glossary.html#term-importer
path entryhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
sys.path_importer_cachehttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_importer_cache
sys.path_hookshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_hooks
path entry hookshttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-hook
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
ImportErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportError
ImportErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportError
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
path entryhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry
import pathhttps://python.github.io/python-docs-zh-tw/glossary.html#term-import-path
ImportErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportError
sys.path_hookshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_hooks
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.machinery.PathFinder.find_spec
sys.path_importer_cachehttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_importer_cache
meta path finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-meta-path-finder
path entry finderhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-finder
path entry hookhttps://python.github.io/python-docs-zh-tw/glossary.html#term-path-entry-hook
sys.path_hookshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_hooks
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
sys.path_importer_cachehttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_importer_cache
sys.path_importer_cachehttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path_importer_cache
importlib.machinery.PathFinder.find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.machinery.PathFinder.find_spec
https://python.github.io/python-docs-zh-tw/reference/import.html#path-entry-finder-protocol
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.PathEntryFinder.find_spec
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.PathEntryFinder.find_spec
portionhttps://python.github.io/python-docs-zh-tw/glossary.html#term-portion
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.PathEntryFinder.find_spec
portionhttps://python.github.io/python-docs-zh-tw/glossary.html#term-portion
ImportWarninghttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ImportWarning
https://python.github.io/python-docs-zh-tw/reference/import.html#replacing-the-standard-import-system
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
__import__()https://python.github.io/python-docs-zh-tw/library/functions.html#import__
ModuleNotFoundErrorhttps://python.github.io/python-docs-zh-tw/library/exceptions.html#ModuleNotFoundError
find_spec()https://python.github.io/python-docs-zh-tw/library/importlib.html#importlib.abc.MetaPathFinder.find_spec
https://python.github.io/python-docs-zh-tw/reference/import.html#package-relative-imports
https://python.github.io/python-docs-zh-tw/reference/import.html#special-considerations-for-main
__main__https://python.github.io/python-docs-zh-tw/library/__main__.html#module-__main__
elsewherehttps://python.github.io/python-docs-zh-tw/reference/toplevel_components.html#programs
syshttps://python.github.io/python-docs-zh-tw/library/sys.html#module-sys
builtinshttps://python.github.io/python-docs-zh-tw/library/builtins.html#module-builtins
https://python.github.io/python-docs-zh-tw/reference/import.html#main-spec
__main__https://python.github.io/python-docs-zh-tw/library/__main__.html#module-__main__
-mhttps://python.github.io/python-docs-zh-tw/using/cmdline.html#cmdoption-m
sys.pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.path
the remaining caseshttps://python.github.io/python-docs-zh-tw/using/cmdline.html#using-on-interface-options
__main__https://python.github.io/python-docs-zh-tw/library/__main__.html#module-__main__
-chttps://python.github.io/python-docs-zh-tw/using/cmdline.html#cmdoption-c
-mhttps://python.github.io/python-docs-zh-tw/using/cmdline.html#cmdoption-m
__main__https://python.github.io/python-docs-zh-tw/library/__main__.html#module-__main__
https://python.github.io/python-docs-zh-tw/reference/import.html#references
specification for packageshttps://www.python.org/doc/essays/packages/
sys.meta_pathhttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.meta_path
PEP 302https://peps.python.org/pep-0302/
PEP 420https://peps.python.org/pep-0420/
PEP 420https://peps.python.org/pep-0420/
namespace packageshttps://python.github.io/python-docs-zh-tw/glossary.html#term-namespace-package
PEP 420https://peps.python.org/pep-0420/
PEP 366https://peps.python.org/pep-0366/
PEP 328https://peps.python.org/pep-0328/
PEP 366https://peps.python.org/pep-0366/
PEP 338https://peps.python.org/pep-0338/
PEP 451https://peps.python.org/pep-0451/
1https://python.github.io/python-docs-zh-tw/reference/import.html#id1
types.ModuleTypehttps://python.github.io/python-docs-zh-tw/library/types.html#types.ModuleType
2https://python.github.io/python-docs-zh-tw/reference/import.html#id3
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
sys.moduleshttps://python.github.io/python-docs-zh-tw/library/sys.html#sys.modules
目錄https://python.github.io/python-docs-zh-tw/contents.html
5. 模組引入系統https://python.github.io/python-docs-zh-tw/reference/import.html
5.1. importlibhttps://python.github.io/python-docs-zh-tw/reference/import.html#importlib
5.2. 套件https://python.github.io/python-docs-zh-tw/reference/import.html#packages
5.2.1. 一般套件https://python.github.io/python-docs-zh-tw/reference/import.html#regular-packages
5.2.2. 命名空間套件https://python.github.io/python-docs-zh-tw/reference/import.html#namespace-packages
5.3. 搜尋https://python.github.io/python-docs-zh-tw/reference/import.html#searching
5.3.1. 模組快取https://python.github.io/python-docs-zh-tw/reference/import.html#the-module-cache
5.3.2. 尋檢器 (Finder) 與載入器 (Loader)https://python.github.io/python-docs-zh-tw/reference/import.html#finders-and-loaders
5.3.3. 引入掛鉤 (Import hooks)https://python.github.io/python-docs-zh-tw/reference/import.html#import-hooks
5.3.4. 元路徑https://python.github.io/python-docs-zh-tw/reference/import.html#the-meta-path
5.4. 載入https://python.github.io/python-docs-zh-tw/reference/import.html#loading
5.4.1. 載入器https://python.github.io/python-docs-zh-tw/reference/import.html#loaders
5.4.2. 子模組https://python.github.io/python-docs-zh-tw/reference/import.html#submodules
5.4.3. 模組規格https://python.github.io/python-docs-zh-tw/reference/import.html#module-specs
5.4.4. __path__ attributes on moduleshttps://python.github.io/python-docs-zh-tw/reference/import.html#path-attributes-on-modules
5.4.5. Module reprshttps://python.github.io/python-docs-zh-tw/reference/import.html#module-reprs
5.4.6. Cached bytecode invalidationhttps://python.github.io/python-docs-zh-tw/reference/import.html#cached-bytecode-invalidation
5.5. The Path Based Finderhttps://python.github.io/python-docs-zh-tw/reference/import.html#the-path-based-finder
5.5.1. Path entry findershttps://python.github.io/python-docs-zh-tw/reference/import.html#path-entry-finders
5.5.2. Path entry finder protocolhttps://python.github.io/python-docs-zh-tw/reference/import.html#path-entry-finder-protocol
5.6. Replacing the standard import systemhttps://python.github.io/python-docs-zh-tw/reference/import.html#replacing-the-standard-import-system
5.7. Package Relative Importshttps://python.github.io/python-docs-zh-tw/reference/import.html#package-relative-imports
5.8. Special considerations for __main__https://python.github.io/python-docs-zh-tw/reference/import.html#special-considerations-for-main
5.8.1. __main__.__spec__https://python.github.io/python-docs-zh-tw/reference/import.html#main-spec
5.9. Referenceshttps://python.github.io/python-docs-zh-tw/reference/import.html#references
4. 執行模型https://python.github.io/python-docs-zh-tw/reference/executionmodel.html
6. 運算式https://python.github.io/python-docs-zh-tw/reference/expressions.html
回報錯誤https://python.github.io/python-docs-zh-tw/bugs.html
顯示原始碼 https://github.com/python/cpython/blob/main/Doc/reference/import.rst?plain=1
索引https://python.github.io/python-docs-zh-tw/genindex.html
模組https://python.github.io/python-docs-zh-tw/py-modindex.html
下一頁https://python.github.io/python-docs-zh-tw/reference/expressions.html
上一頁https://python.github.io/python-docs-zh-tw/reference/executionmodel.html
Pythonhttps://www.python.org/
3.14.0 Documentationhttps://python.github.io/python-docs-zh-tw/index.html
Python 語言參考手冊https://python.github.io/python-docs-zh-tw/reference/index.html
5. 模組引入系統https://python.github.io/python-docs-zh-tw/reference/import.html
版權所有https://python.github.io/python-docs-zh-tw/copyright.html
歷史與授權條款https://python.github.io/license.html
敬請捐贈。https://www.python.org/psf/donations/
發現 bughttps://python.github.io/bugs.html
Sphinxhttps://www.sphinx-doc.org/

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.