What type of language is python?

(*-*)浩
Release: 2019-08-01 16:08:21
Original
5441 people have browsed it

Python is an interpreted, object-oriented, high-level programming language with dynamic data types.

What type of language is python?

Interpreted language: (Recommended learning: Python video tutorial)

The program does not Compilation is required, and the program is translated into machine language when it is run, and it must be translated every time it is executed. Therefore the efficiency is relatively low. For example, Basic language has a dedicated interpreter that can directly execute Basic programs, and each statement is translated when it is executed. (It is translated when the program is running. There is a dedicated interpreter for translation. Each statement is translated when it is executed. The efficiency is relatively low, it relies on the interpreter, and it has good cross-platform performance.)

Object-Oriented Language is a type of programming language that uses objects as the basic unit of program structure. It means that the design used to describe is based on objects as the core, and objects are the basic components of the program when it is running. . The language provides components such as classes and inheritance, and has four main characteristics: recognition, polymorphism, category and inheritance.

Object-oriented languages ​​describe objective systems more naturally and facilitate software expansion and reuse. has four main characteristics:

(1) Recognizability, the basic components in the system can be recognized as a set of identifiable discrete objects;

(2) Category, all objects in the system with the same data structure and behavior can form a class;

(3) Polymorphism, the object has a unique static type and multiple possible dynamic types;

(4) Inheritance, sharing data and operations among different classes in basic-level relationships.

Among them, the first three are the basis, and inheritance is the feature. The four (sometimes plus dynamic binding) are used in combination to reflect the expressive power of object-oriented languages.

Dynamic language means that the program can change its structure while running: new functions can be introduced, existing functions can be deleted, etc. Structural changes, type checking It is done at runtime. The advantage is that it is easy to read and clear. The disadvantage is that it is inconvenient to debug.

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of What type of language is python?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!