A. Python in function:
Def i.e. a code defined, may be invoked.
1 def func(a, b): 2 c = a + b 3 4 return c
B. Python modules:
.Py i.e. a file in which a plurality of functions can be defined.
Module.py def dunc1(a, b): c = a + b return c def func2(a, b, c): return a + b**c ....
C. Python package:
I.e., a folder, which comprises a number of modules and __init__.py initialization function.
package1 __init__.py Module1.py Module2.py ...
D. Relationship functions, modules, packages
Simply put, a set of multiple functions written in a .py file to rent to form a module, a set of multiple modules stored in the same folder, then a file __init__.py be identified folder is a package