Briefly summarize what is python

Python is an interpreted language. That said, unlike C and its derivatives, Python code does not need to be compiled before running. Other interpreted languages ​​include PHP and Ruby.

Python is a dynamically typed language, which means that when you declare a variable, you don't need to specify the type of the variable. You can directly write code like x=111 and x="I'm a string", and the program will not report an error.
Python is very suitable for object-oriented programming (OOP) because it supports the definition of classes through composition and inheritance.


          There is no access specifier in Python (similar to public and private in C++), which is designed on the basis of "everyone is an adult".
In the Python language, functions are first-class objects. This means that they can be assigned to variables, and functions can either return a function type or accept functions as input. Classes are also first-class objects.
Python code is fast to write, but typically runs slower than compiled languages. Fortunately, Python allows C-based extensions to be added, so we can optimize the code and eliminate bottlenecks, which is usually achievable.


     Numpy is a good example, it's really fast because many arithmetic operations are not actually implemented in Python.
Python is very versatile - web applications, automation, scientific modeling, big data applications, etc. It is also often used as a "glue language" to help other languages ​​and components perform better.
Python makes hard things easy, so programmers can focus on designing algorithms and data structures rather than dealing with the low-level details.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325725841&siteId=291194637