python--static languages, dynamic languages, strongly typed languages, weakly typed languages, scripting languages, interpreted languages, compiled languages

Source: Internet
Author: User

Static language

When you write code, you must specify a specific type of language for the variable. such as Java, C + +

Dynamic language

Instead of specifying an explicit type for a variable when writing code, the interpreter determines the type of the variable at run time, based on the usage of the variable. such as Python, JavaScript

# python's dynamic characteristics m = ten'hello'print m     #print ' Hello '

Strongly typed languages

The variable must have a certain type. such as Java, C + +, Python

Weakly typed languages

At run time, the variable does not have to be used as its original type, and can be used as other types, such as the ability to directly use a string as an integer, or an integer as a string. Like JavaScript.

// the weak class characteristics of JavaScript var result=5+5//outputs "ten"var result=5+ ' 5 '//  Outputs " "

scripting language

The scripting language does not need to be compiled, can be used directly, and is interpreted by the interpreter. such as PHP

Interpreted language

The program side performs the side explanation, so the speed is slow. Every time you perform a translation, it is less efficient.

Compiled languages

Before the execution of the program, there is a separate compilation process, the program compiled into machine language files, such as EXE files, later to run the words do not have to re-translate, so high efficiency.

python--static languages, dynamic languages, strongly typed languages, weakly typed languages, scripting languages, interpreted languages, compiled languages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.