Python Program Architecture:a program is a module of the system, it has a top-level script file (can run the program after startup) and multiple module files, scripts and modules are text files containing Python statements, and Python's standard library provides a series of pre-written modules
Python Module Overview
A python consists of several text files containing Python statements, which are constructed as a main, top-level file, with another or multiple supported files, which are called modules in Python.
The top-level file (program) contains the main control flow of the program (the file running to launch the application)
Modules are libraries of tools used to collect the components used by the top-level files
the role of the Python module:
Code reuse: A module can permanently save code in a file, a module or a control that defines a variable name, is considered a property, and can be referenced by multiple external clients
Partition of System namespaces: module is also the most level of program organizational unit in Python, which encapsulates the variable name into a self-contained package
Implementing Shared Services and data: modules are convenient for implementing components that are shared across systems, and require only one copy to
Python module module files