Comprehensively analyzes the advantages and disadvantages of Python and the advantages of python

Source: Internet
Author: User

Comprehensively analyzes the advantages and disadvantages of Python and the advantages of python

Advantages and disadvantages of Python

The content of this section is as follows:

  • Advantages of Python
  • Disadvantages of Python
  • Use a well-known Python website
Advantages of Python

1. Simple Python syntax is very elegant. It does not even have special symbols such as braces and semicolons in other languages. It represents a simple design idea. Reading Python programs is like reading English.

2. Learn Python very quickly and learn a very low curve. You can directly use the command line interactive environment to learn Python programming.

3. all free/open-source Python content is free and open-source, which means you can use Python for free without spending a penny, in addition, you can freely copy the software, read its source code, make changes to it, and use part of it in the new free software.

4. Automatic Memory Management if you understand C and C ++ languages, you will know that memory management brings a lot of trouble to you and programs are prone to memory vulnerabilities. However, in Python, memory management is automatically completed. You can focus on the program itself.

5. It can be transplanted because Python is open-source and has been transplanted to most platforms, such as Windows, MacOS, Linux, Andorid, and iOS.

6. most computer programming languages are compiled. Before running the program, you need to compile the source code into a binary format (in the 0110 format) that can be executed by the operating system, which consumes a lot of time, programs Written in Python do not need to be compiled into binary code. You can run the program directly from the source code. Inside the computer, the Python interpreter converts the source code into an intermediate form called bytecode, and then translates it into the machine language used by the computer and runs it.

7. Object-oriented Python supports both process-oriented and object-oriented, making programming more flexible.

8. In addition to compiling Python itself, extensible Python can also be compiled in a mix of languages such as C and Java.

9. The rich third-party library Python has its own rich and powerful libraries. Due to the open-source features of Python, there are also many third-party libraries, such as web development, crawlers, and scientific computing.

Disadvantages of Python

Although Python has many advantages, it is not perfect and has its own shortcomings.

1. Slow speed because Python is an interpreted language, it is slower than C and C ++, but it does not affect usage. Because the current hardware configuration is very high, basically there is no impact, unless some programs with strong real-time performance may be affected, but there are also solutions to embed C Programs.

2. Force indent if you have programming experience in other languages, such as C language or Java language, it will make you quite uncomfortable to scale in to the beginning. But if you get used to the indentation Syntax of Python, you will think it is very elegant.

3. Single-line statements because Python can not write semicolons at the end, one row can only have one statement, which may be a disadvantage, but it is really insignificant.

Use a well-known Python website

Domestic:

  • Douban
  • Shell
  • Zhihu
  • Sohu email

Foreign:

  • Youtube
  • Gmail mailbox
  • Dropbox

And so on.

If you have any different points of view after learning, you can discuss them in the comment area below. Thank you for your support for the help house.

Related Article

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.