Blogger: Light of Destiny
Column: Python Programming
Table of contents
Python download and installation
Python download and installation
Commonly used integrated development environments IDE
- Default programming environment: IDLE---Beginner ( Download Python | Python.org )
- Other commonly used development environments:
- PyCharm---Large Application Development (WEB) PyCharm: the Python IDE for Professional Developers by JetBrains
- VS Code---Download Visual Studio Code - Mac, Linux, Windows
- Anaconda3---Scientific computing and data analysis ( Free Download | Anaconda )
Anaconda installation and use
Anaconda3 (with Jupyter and Spyder): Free Download | Anaconda
- Anaconda is a data processing and scientific computing platform based on Python. It has built-in many very useful third-party libraries. Installing Anaconda is equivalent to automatically installing Python and some commonly used libraries such as Numpy, Pandas, Scrip, Matplotlib, etc. alright.
- After successfully installing Anaconda3, you can also use the command line tool conda to manage the extension library. condalist (list modules installed by Anaconda3)
- After installing Anaconda3, JupyterNotebook and Spyder are the two most commonly used development environments in the start menu.
How Python programs run
- Python program running process
- Interpreter:
- python.exe---CLI
- pythonw.exe---GUI
There are three different implementations of the Python language:
- Cython is the standard implementation of Python, an interpreter implemented in portable C language. It performs poorly in multi-threading performance and does not support JIT (just-in-time compilation), resulting in insufficient execution speed.
- Jyphon is the implementation of Python in the Java environment. It translates the Python source program into Java bytecode and runs it through the JVM.
- PyPy uses a Python interpreter implemented in Python, supports JIT, and has faster execution speed.
Common extensions for Python files
- .py: Python source file, which is interpreted and executed by the Python interpreter
- .pyw: Python source file, used for graphical interface program files, also interpreted and executed by the Python interpreter
- .pyc: Python bytecode file, which can be used to hide Python source code and improve running speed. It is platform-independent bytecode and is automatically compiled and generated when the module is first imported.
Summarize
How a Python program runs:
- Through the interpreter python.exe or pythonw.exe + python program source code file
- Run in integrated development environment