or copy it, https://www.cnblogs.com/yan-lei/p/7828871.html from here.
Python code in one module gains access to the code in another module by the process of importing it.
Two concepts:
module: Used to organize Python code (variables, functions, classes) from logic (to implement a function), essentially *.py files. The file is physically organized "module_name.py", and the module is logically organized "module_name".
Package: Defines a python application execution environment consisting of modules and sub-packages, essentially a hierarchical file directory structure (must have a __init__.py file).
1 # Import a module 2 Import Model_name 3 # Importing multiple modules 4 Import module_name1,module_name2 5 # imports the specified properties, methods (without parentheses), classes in the module 6 from import moudule_element [as New_name]
What did the import of Python do?