Getting to know the Python3 module

Python3 module

Our script uses the python interpreter to program. If you exit from the Python interpreter and then enter, all the methods and variables you defined will disappear.

For this reason, Python provides a way to store these definitions in a file for use by some scripts or interactive interpreter instances. This file is called a module.

A module is a file that contains all the functions and variables you define, and its suffix is ​​.py. Modules can be introduced by other programs to use functions and other functions in the module. This is also the way to use the python standard library.

Installation location:

C:\Program Files\Python38\Lib

 

 

Guess you like

Origin blog.csdn.net/jundao1997/article/details/106055460