1 Python language overview
python
1 Python is an object-oriented language, because it can use a very rich third-party library to make it very widely used, so it is a language with strong functions and a wide range of ways. It is also a simple and easy-to-use language, which focuses on problem-solving rather than grammar and structure. (Because python has a wide range of roads and involves many fields, so as long as you learn python well, you will definitely find it) (how to learn python well? To be done)
2 Features of python language
-
simple
-
Easy to learn
-
Free and open (open source code)
-
Cross-platform (such as Unix)
-
Embeddability (for example, it can be used in C++)
-
Rich libraries (such as Pypi, Requests that comes with python)
3 Use of python
-
Routine software development
-
Scientific Computing
-
Automated operation and maintenance
-
automated test
-
WEB development
-
Web Crawler
-
data analysis
-
artificial intelligence
-
cloud computing
Build in python environment under Windows
-
Python interpreter (environment construction is to install python interpreter)
-
Python interpreter classification
- Cpython (Officially recommended interpreter) Python interpreter written in C language
- PyPy (better compatibility and slower speed) interpreter written by python
- Jpython Python interpreter written by java
Start to build python environment
- Download the installation package
www.python.com
(recommended version 3.6 is the most stable)
-
Finally Install can be installed
After the installation is complete, win+R enter python to complete the python interactive mode
2 Use of pip tool
Introduction to pip
Python's official pypi (abroad) warehouse provides us with a unified code hosting warehouse. All third-party libraries, and even open source modules written by you can be published here, so that people around the world can share and download.
-
Use of pip: enter pip in the command line to see the help
-
View the pip version number pip -V (uppercase)
-
pip install Flask -i https: //pypi.douban.com/simple is the source download library
Save (export) the list of installed libraries to a text file
Command: pip freeze> C:\Users\千代子\Desktop (the name of the file to be saved)
is used to package and download directly when a project is added in the middle .
How to one-click download after exporting to a folder?
-
First cd (enter folder command) to desktop
-
Then dir (display the current file directory) find the folder you want to download
-
After finding it, use the command: pip install -r (file name and suffix name).
3 Pcharm installation steps
https://www.jetbrains.com/ After entering, find and view all tools.
After entering, download the community version, don't ask why it is free.
The download is complete and the installation starts, just watch the check.
Putting the project in pycharm is to create a working environment with python for this project.
Loading python is equivalent to hanging in the background of pycharm to interpret the code and the machine can respond .