python started to learn - learn python

1.python language features:

1) programming language can be divided into three categories: machine language, assembly language, high-level language ;

2) it may also be based on a compiled or interpreted to perform divided into: a scripting language, statically typed languages;

      Scripting language features: interpreted, executed one by one, the process can be divided into three steps: adding input source code -> through the interpreter -> to obtain an output; (e.g., PHP, JavaScript)

      Static language features: compiler implementation, both the compiler converts the source code into object code, can be divided into two steps: the source code generated by a compiler object code -> added to the input object code, a program executed to obtain an output; (C e.g. , JAVA)

3) compilation and interpretation:

      Compile:

      1, the same source code, object code generated by the compiler execution speed faster;

      2, the object code compiler does not need to be run in the same type of use of the operating system is more flexible;

      Explanation:

      1, the solution need to keep the source code executed, an error correction procedure is more convenient;

      2, as long as there interpreter, any source code may run on any operating system , good transplantation;

4) python interpreted, and compile and generate object code, compiled and explained in combination;

Guess you like

Origin www.cnblogs.com/YM99/p/12539071.html