Importing this module will append site-specific paths to the module search path and add a few builtins, unless -S was used. In that case, this module can be safely imported with no automatic modifications to the module search path or additions to the builtins. To explicitly trigger the usual site-specific additions, call the site.main() function.
Changed in version 3.3: Importing the module used to trigger paths manipulation even when using -S.
site — Site-specific configuration hook
……
To explicitly trigger the usual site-specific additions
……
After these path manipulations, an attempt is made to import a module named sitecustomize, which can perform arbitrary site-specific customizations.
……
After this, an attempt is made to import a module named usercustomize, which can perform arbitrary user-specific customizations
……
译文:
原文:
改进:
译文:
原文:
改进:想不出更好的表达。
site-specific
:域特定
?特定域
?指定域
?站点专属
?域专属
?user-specific
:(同理)