Python module module files

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.