01 Python Basics

A, Python's history

1 1989 Christmas: Guido von Rossum began to write Python language compiler.

2. February 1991: First Python compiler (also interpreter) was born, it is implemented in C language (later reappeared other implementations of Java and versions of Jython and IronPython C # implementation, as well as PyPy, Brython, Pyston etc. ), you can call the C language library functions. In the earliest version, Python has provided support for the "category", "function", "Exception Handling" like building blocks, while providing a "List" and "dictionary" and other core data types, while supporting module basis the expansion of the system.

3. January 1994: Python 1.0 released.

4. In 2000 October 16: Python 2.0 release adds achieve a complete garbage collection , provides Unicode support. At the same time, Python's entire development process more transparent, impact on community development progress gradually expanding ecosystem slowly began to form.

5. 2008, December 3: Python 3.0 release, it is not fully compatible with previous Python code, but because there are many companies currently use Python 2.x version of the project and operation and maintenance, so many new Python 3.x characteristic was also later ported to Python 2.6 / 2.7 version.

The current version of Python 3.7.x we are using was released in 2018, Python version is divided into three sections, shaped like ABC. Where A represents the major version number, usually when the overall rewrite, or not backward-compatible changes occur, increased A; B when B represents an increase feature updates, the emergence of new features; C represents a small change (such as a Bug fixes ), as long as the modification increases C. If you are interested in Python's history, you can view an article entitled "A Brief History of Python" Bowen.

Two, Python applications

       Python is currently in the field of cloud infrastructure, DevOps, web crawler development, data analysis, mining, machine learning, etc. have a wide range of applications, and therefore also had a back-end Web development, data interface development, operation and maintenance of automation, automated testing, and scientific computing visualization, data analysis, quantitative trading, robot development, a series of image recognition and processing jobs.

Three, Python code examples

1.Hello world

2. Adder

3. E-mail encryption

4. The circumference of a circle area

5. Analyzing leap year

6. Number of daffodils

7. Fahrenheit degrees Celsius

8. square

9. True or False

10. Output

Guess you like

Origin www.cnblogs.com/wx00/p/11272567.html