python history:
in 1989 Year Development completed,1991 release of the first version
Founder:
Guido van Rossum ( Dutch)
features of Python:
explanatory: Python is an explanatory language, and the computer runs the. Py script that translates each statement into a machine code that can be recognized by the CPU at run time.
Easy to learn: fewer keywords, no need for a lot of memory.
Portable: The python source code can be better cross-platform on the unix,linux,windows.
Extensible: If you want to encrypt some code, you can write it in C/c++/java and call it in a Python script.
embeddable: A python script can be invoked inside a C/c++/java file.
The disadvantages of python :
slow to run : Because Python is an explanatory language, when you run Python, you must first interpret each sentence of the. Py as a machine code before the CPU can run. In contrast, C/c++/java is a compiled language that compiles. c/.cpp files into machine code before running the source code, and the computer just needs to run the machine code. Therefore, in addition to running the machine code python, there is an explanation of the process, slow running is also no way to avoid.
no confidentiality : Python scripts cannot be compiled, so all Python practitioners can read the script when it is released externally. and the C/c++/java source code is compiled programming machine code. General practitioners can not read machine code, Therefore, C/c++/java developers only need to publish machine code on the external.
Python 's shortcomings are so obvious, why learn python ?
Before you answer this question, you should first introduce two concepts: data-intensive tasks and I/O intensive tasks
data-intensive Tasks : This task is frequently calculated using CPUs and is very fast.
I/O intensive Tasks : The task frequently uses hard disks, reads and writes take a long time, or requests for network frequently, and network waits take a long time.
So for tasks that require a lot of computation, namely data-intensive tasks, the CPU is required to run fast to the program, C/c++/java is more appropriate, and python can't handle it.
For I/O-intensive tasks, the CPU does not run as fast for Python scripts, but these tasks actually take a long time, and therefore do not require the CPU to perform as fast as the task. Python is a perfect fit for these tasks while also playing Python.
python0.1-----The pros and cons of Pyhon, why learn Python