python Standard libraries and built-in modules are not a concept , The standard library contains built-in modules , Built in modules belong to the standard library .
For example, our common basic data types belong to python Standard library , But not built-in modules .
Method 1 :import os,time,sys Each module is separated by English commas .
Method 2 :import os
import time
import sys
Be careful : It is recommended to use method 2 to import multiple modules , Import module sequence : Built-in module ----> Third-party module ------> Custom module ;
The module is loaded into memory the first time it is imported , Follow up import Statement only adds a reference to a module object that has been loaded in large memory . Third party modules , A custom module may call a built-in module , therefore , When we import modules , You should first import the built-in module of the interpreter , Then import the third-party module , Finally, import the custom module .
Sometimes we will encounter import module failure , Error message :ModuleNotFoundError: No module named ' Module name '.
To solve this problem , We need to know Python The process of finding module files by the interpreter :
After knowing the reason , solve “Python Specified module not found ” The way to do this is 3 Kind of , Namely :
reference:
What is a module ,Python Modular programming ( Entry required )
Python Standard library — Python 3.8.12 file