Python Overview (Object-oriented, interpreted programming language)


Python([ˈpaɪθən])是一种面向对象、解释型计算机程序设计语言。 Python 语法简洁、清晰,具有丰富和强大的类库。 因此,Python 也是当下大数据、AI 人工智能、区块链、等的最流行开发语言。

Python 由 Guido van Rossum 于 1989 年底发明,第一个公开发行版发行于 1991 年。 Python 源代码遵循 GPL (GNU General Public License) 许可授权协议,Linux Ubuntu 默认将其集成为首选系统级维护语言。

 

Download PyPy     Download CPython

 

Download MicroPython

 

Python 是一门跨平台的脚本语言,Python 只规定了一种语法规则。若采用不同编程语言实现 Python 语法并解释程序,就成了一种不同的 Python 解释器。

不管采用哪种编程语言实现 Python 解释器,在编写 Python 应用时的代码规范及语法规则是不变的,变化的只是底层解释器实现,即 "运行时" 的方式。

 

Python Implement

Implementation Underlying Language Python Version Explanation Remark
CPython C 2.7.18 3.9.7

Classic Python, also the original Python implementation

When it needs to be distinguished from other implementations, it is called CPython; Or called Python implemented in C language

This is the most commonly used version of Python
MicroPython C 3.4.4 Mainly used for IoT MCU (micro control unit, also known as single chip microcomputer) Made a lot of simplifications to Python
PyPy Python 2.7.18 3.7.9 Python implementation written in Python language Officially claimed that the average speed is 4.2 times that of CPython
Python for .NET C Manage .NET applications and call .NET libraries This implementation is actually based on CPython
IronPython .NET 2.7.18 3.4.4 Python implementation for .NET and ECMA CLI

IronPython can directly call the .NET platform function library

Compile Python applications into .NET programs

Jython Java 2.7.18 Python implemented in Java language Jython can directly call the Java function library
ZhPy Also known as Zhou Mang, Python implementation that supports of writing applications using Traditional/Simplified Chinese sentences

 

Python 常被称为胶水语言,能把用其他语言编写的各模块 (尤其是 C/C++) 轻松地联结在一起。常见情形是,用 Python 快速生成程序原型 (有时甚至是程序最终界面),然后对其中有特别要求的部分,用更合适的语言改写。

譬如:3D 游戏中的图形渲染模块,性能要求特别高,就可用 C/C++ 重写,而后封装为 Python 可调用的扩展类库。需要注意的是,在使用扩展类库时可能需要考虑平台问题,某些扩展类库可能不提供跨平台实现。

Python 行业应用

 

Copyright Notice: This article is an exclusive original manuscript, copyright belongs to Happy Digits Software , shall not be reproduced without permission.