Interview - understanding of python

Python is an interpreted language. That is, with the C language, and C language derived from the different, previously compiled Python code does not need to run. Also other interpreted languages including PHP and Ruby.
 Python is a dynamically typed language, referring to when you declare a variable, the variable type does not need explanation. You can write directly to x = 111 and similarly x = "I'm a string" this code, the program will not be given.
 Python is very suitable object-oriented programming (OOP), because it is supported by a combination of (Composition) and inheritance (Inheritance) define a class (class). Python is no access specifier (access specifier, similar to C ++ in public and private), based on such a design is that "we are adults know everything."
 In Python language, functions are first-class objects (first-class objects). This means that they can be assigned to variables, functions, both types of return functions, the function can also accept as input. Class (class) are first-class objects.
 Fast write Python code, but runs faster than compiled languages are usually slower. Fortunately, Python allowed to join the extended C-based language, so we can optimize the code, eliminate bottlenecks, this can usually be achieved. numpy is a good example, its speed is really very fast, because a lot of arithmetic operations by Python is not really implemented.
 Python uses a very wide - network applications, automation, scientific modeling, large data applications, and so on. It is also often used as a "glue language", and other languages to help improve the health of components.
 Python make hard things easy, so programmers can focus on the design of algorithms and data structures, rather than dealing with low-level details.

Guess you like

Origin www.cnblogs.com/fan-1994716/p/11872318.html