-
site
This module is automatically imported during initialization.
The automatic import can be suppresssed using the interpreter’s
-Soption.-S:
don't imply 'import site' on initializationDisable the import of the module site and the site-dependent manipulations of sys.path that it entails.
Importing this module will append site-specific paths to the module search path and add a few builtins.
To explicitly trigger the usual site-specific additions, call the
site.main()functions. -
site.main()
Adds all the standard site-specific directories to the module search path.
<
理解Python模块site及site.USER_BASE
最新推荐文章于 2026-05-01 09:30:38 发布


5802

被折叠的 条评论
为什么被折叠?



