Python learning notes (1)-introduction and application of Python, python-python

Source: Internet
Author: User

Python learning notes (1)-introduction and application of Python, python-python

The design philosophy of Python is "elegant", "clear", and "simple". The philosophy of Python developers is "one way, preferably one way to do one thing ", optimization of development efficiency: Concise syntax, built-in toolkit, no compilation required. Due to this difference in design concepts, Python source code is generally considered to be more readable than Perl and can support large-scale software development. These rules are called"Python motto", Run in the Python Interpreterimport thisYou can obtain the complete list. Python is "the best fit for thinking habits of the brain". The most attractive feature is quality and efficiency, and it has good readability and convenient cross-platform transplantation.

Python can be defined as an object-oriented scripting language. It is commonly used in three purposes: (1) shell tool-Execute from the command line to call other programs, file processing, and other tasks, this is a small part of the Python application scope; (2) control language-control the "bonding layer" of other application components to facilitate interaction between different components; (3) prototype Development-simple to use, easy to expand, and applied to fast job tasks. Therefore, Python is called the "scripting language" because it is convenient, not the scope of application. In fact, Python is a high-level language with a wide range of applications.

Advantages of Python:

(1) free, easy to use-use and distribution are completely free, with no restrictions on product release, and quick response and support to user needs, developers have endless documents and source code libraries. Python has simple syntax, no need to compile, connect, and other steps. It can be executed by typing. It has the interactive experience and fast modification features, the core language is simple, readable, easy to use, and has a short development cycle but powerful functions.

(2) Object-oriented-Python is an object-oriented language that supports multiple features, overload, and multi-inheritance. It supports Object-Oriented Programming and process-oriented programming.

(3) portability-the Python standard implementation is written by ansi c and has platform independence. The core language and library are the same on any platform, most peripheral interfaces are extended for the corresponding platform. Python programs can run on the computer platform (Linux, Unix, and windows) without modification or modification. The bytecode generated by the Python program is run on all platforms compatible with Python and the results are the same.

(4) It can be mixed with other languages-Python can be "bonded" with other languages in multiple ways, which is a good quick prototyping tool.

Compared with C/C ++, Python has the disadvantage of being slow in execution and belongs to an interpreted high-level language. Python converts source program statements into bytecode (a platform-independent format for convenient transplantation), and then explains the execution, c/C ++ compiles it into the underlying binary code. The execution speed of Python lies in the middle of the Traditional compilation language and the traditional interpretation language.

In other words, the program is divided into application scenarios. In some real-time computing fields that require a large amount of data computing (such as wireless communication physical layer signal processing), of course, we need to maximize the CPU computing efficiency and use C language and various optimization methods to optimize the execution speed. On the other hand, in the "real life" field (meaning front-end, human interaction interface, etc.), Python is fast enough, and now the CPU processing speed is fast, response speed is enough to exceed the human response speed. In addition, even in the real-time computing field, the separation architecture-real-time processing and support are also required. The latter can connect the entire system through Python.

Python is widely used in many fields, including website construction, game development, robotics, and Aerospace Control. The following describes common fields:

(1) System Programming-compiling portable tools for maintaining the operating system, inter-process communication, and file processing.

(2) Component Integration-extends through C/C ++ and nest C/C ++ attributes to become a bonding language, it is used to process other systems or components, such as other components in the call library of the test box.

(3) Quick Prototyping-easily and quickly build a prototype, and then move it to C/C ++ for easy maintenance.

Python can also be used for user interface GUI, Internet scripts, scientific computing, artificial intelligence, XML, and so on.


I just learned Python and used Python30. I recommend a book for beginners.

The release of python3.0 is not long before. We recommend that you use more than 2.7, with less information and less answers to problems.
First look at the python simple tutorial, and then look at the python core programming.
After learning, you can easily develop a crawler tool. If you want to research the web, you can study django, which will make you excited!

This is my learning path.

I have always been helpful!

Who can recommend the best PYTHON learning material?

We recommend that you use python2.X for python learning notes and learning python in pidaqing.

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.