Python entry notes (1): Python Overview

Source: Internet
Author: User
I. Python features

Python has been around for more than 15 years. It has the following features:

1. Advanced Programming Language

2. Object-oriented

3. upgradable

The so-called upgradeable means that your code is reused, upgraded, enhanced, and improved, which is far above the Unix shell or batch processing. In core python programming, the term "upgradable" is used to measure the Hardware load and improve the performance of systems after new hardware is added. We try to use it for software, python provides basic development modules. You can develop your software on it, and these require extension and growth, python's plug-in and modular architecture make your project lively and easy to manage.

4. scalability

How to expand: it is divided into multiple files or multiple modules, which can be processed by multiple segments and easy to manage; c/c ++ is compiled (because the standard implementation of Python is completed in c language, also known as CPython, therefore, c/c ++ is used to compile Python extensions. Python's java implementation is called Jython, and IronPython's C # implementation for. net or Mono platforms.

5. Portability

It is written in C, so it has the portability of C.

6. Easy to learn

The general feeling of Python is: few keywords, simple structure, easy to read

7. robustness and maintainability

Exception Handling Mechanism, memory management is the responsibility of the Python interpreter, so that programmers will not be entangled in memory management issues, but are committed to development tasks.

8. richness

Various APIs, standard libraries, extended libraries, development plug-ins, and tools make Python development efficient and rich

9. interpretability and compilation

Python is an interpreted language without compilation. Python is actually a byte compilation, and the result generates an intermediate form that is similar to the machine language;

Python source file. py extension. When the source file is loaded or explicitly compiled by the interpreter, It is compiled into a bytecode. Because the method for calling the interpreter is different, the source file will be compiled. pyc or pyo extension file.

2. Build Python and Django Environments

See another blog: http://www.cnblogs.com/BeginMan/archive/2013/03/11/2954346.html

3. Three Methods for running Python:

1. the simplest one is to start the interpreter through an interactive interface and execute a line for each input line, such as (Python command line)

2. Run the Python script and call the relevant script interpreter.

3. graphical user interfaces integrated with the development environment, such as Python GUI and eclipse pydev

Graphical User Interface (GUI) is a computer operation User Interface displayed in a Graphical manner. Compared with the command line interface used by early computers, the GUI is more visually acceptable to users.

Programming languages for dynamic and static types:

Programming languages are divided into dynamic (type) languages and static (type) languages.

Dynamic language refers to a language that performs data type check only during running. That is to say, when programming in Dynamic Language, no data type is required for any variable, this language records the data type when it is assigned a variable for the first time. Python, Ruby, and js are typical dynamic language.

Static and dynamic type languages are just the opposite: their data types are checked during compilation, that is, the Data Types of all variables must be declared during program writing, c/C ++ is a typical representative of static language. Other static language types include C # and Java.

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.