What is the concept of python module and how to import it
This article mainly introduces the concept of python module and how to import the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe that you read the concept of this python module is what and how to import the article will have a harvest, let's take a look at it.
Concept
In Python, each Python code file is a module. When writing a program, we can spread the code into different modules (files), and then reference the contents of another module in one module.
Import format
1. Referencing (importing) another module in one module can use the importstatement: the module name is the file name that removes the .py suffix.
Import module name
For example, if you want to import the module abc.py, you only need import abc.
2. After the import module, you can use the name (variable, function class) in the import module. The methods are as follows:
Module name. Variable module name. The name of the function module. What are the main application areas of python? 1. Cloud computing, typical application OpenStack.
2. WEB front-end development, many large websites are developed by Python.
3. Artificial intelligence applications, which are based on big data's analysis and deep learning, have essentially been unable to leave python.
4. System operation and maintenance project, the standard configuration of automatic operation and maintenance is python+Django/flask.
5. Financial management analysis, quantitative transaction, financial analysis.
6. Big data's analysis.
This is the end of the article on "what is the concept of python module and how to import it?" Thank you for reading! I believe you all have a certain understanding of "what is the concept of python module and how to import it". If you want to learn more knowledge, you are welcome to follow the industry information channel.