-
Overview
Python modules and Python packages are two mechanisms that facilitate modular programming.
A script is a Python file that’s intended to be run directly.
A module is a Python file that’s intended to be imported into scripts or other modules.
A package is a collection of related modules that work together to provide certain functionality.
A library is an umbrella term that loosely means “a bundle of code”. These can have tens of even hundreds of individual modules that can provide a wide range of functionality.
- Matplotlib is a plotting library.
- The Python Standard Library contains hundreds of modules for performing common tasks
Only package and module have a well-defined meaning specific to Python.
-
理解module, script, library, package in Python
最新推荐文章于 2023-03-26 17:26:59 发布