Getting Started with Python

Source: Internet
Author: User

Python Brief introduction

Since the the early 1990s Python language was born, it has been widely used in processing system management tasks and web programming.

Python is designed with a clear, consistent style, which makes Python an easy-to-read, easy-to-maintain, widely-used language that is popular with many users.

Python's design philosophy is "elegant", "clear", "simple". Therefore, the idea that "there are always multiple ways to do the same thing" in the Perl language is often unbearable for Python developers. The Python developer's philosophy is "in one way, it's best to have only one way to do something." When designing the Python language, Python developers tend to reject the fancy syntax when faced with a variety of options, and choose a syntax that is unambiguous and has little or no ambiguity. Because of this conceptual difference, Python source code is often thought to be more readable than Perl and can support large-scale software development. These guidelines are called Python maxims. Run import this in the Python interpreter to get a complete list.

Simple: Python is a language that represents the idea of simplicity. Reading a good Python program feels like reading English. It allows you to focus on solving problems rather than figuring out the language itself. Easy to learn: Python is extremely easy to get started because Python has a very simple documentation [4]. fast speed:The bottom of Python is written in C, and many standard libraries and third-party libraries are written in C and run very fast. [2] free, open source: Python is one of floss (free/open source software). The user is free to publish copies of the software, read its source code, make changes to it, and use it as part of the new free software. Floss is the concept of sharing knowledge based on a group. high-level language: When writing a program in Python, you do not need to consider the underlying details such as how to manage the memory used by your program. Portability: Because of its open source nature, Python has been ported to many platforms (modified to make it work on different platforms). These platforms include Linux, Windows, FreeBSD, Macintosh, Solaris, OS/2, Amiga, AROS, as/400, BeOS, os/390, z/OS, Palm OS, QNX, VMS, Psion, Acom RISC OS, VxWorks, PlayStation, Sharp Zaurus, Windows CE, PocketPC, Symbian, and Google Linux-based Android platforms. The language status of Python

Python's web framework

After several years of development, Python has a lot of excellent framework, django,flask,web.py, and so greatly expanded the python, improve the development efficiency

Python Web Framework Advantage 1:

    1. Powerful features
    2. Developers familiar with a certain technical reserve
    3. There are some optional control resources
    4. Expansion of the number of user levels

Advantage 2:

    1. Rapid development
    2. Very rich user and development control
    3. There are several success stories 43things, Odo
    4. Support Ajax

Advantage 3:

    1. Powerful features
    2. Google's main platform
    3. Has released Zope3

Python Web Framework Advantage 4:

    1. Rapid development
    2. Ror mode
    3. Have a certain amount of time to accumulate, the corresponding development tools and modules
    4. Support ajax,i18n
    5. Low development work Volume
    6. Python language, quick to install and get started

Advantage 5:

    1. Clear functional Framework
    2. Low coding volume and high development efficiency
    3. Have ready-made templates to reduce UI effort
    4. Foreign web site development and application selection hotspot
    5. Can communicate more resources
    6. In the rapid development of
At last The Zen of Python

Life is short, I use Python

The Zen of Python

Beautiful is better than ugly.

Beauty is better than ugliness

Explicit is better than implicit.

Better than the hidden

Simple is better than complex.

Jane is better than complex

Complex is better than complicated.

More complex than miscellaneous

Flat is better than nested.

Flat is better than overlapping

Sparse is better than dense.

Sparse is better than secret

Readability counts.

Reading is better than writing

Special cases aren ' t special enough to break the rules.

Rules are better than exceptions.

Although practicality beats purity.

Practicality is better than simplicity

Errors should never pass silently.

Error is better than silence

Unless explicitly silenced.

Silence is better than noise

In the face of ambiguity, refuse the temptation to guess.

Refusal is better than speculation

There should is one--and preferably only one--obvious the-do it.

The only better than the obvious

Although that is obvious at first unless you ' re Dutch.

Apparently not Holland.

Now is better than never.

Now better than never

Although never is often better than *right* now.

Never better than a hasty quenching

If the implementation is hard to explain, it's a bad idea.

Where it is worth saying, it will be easy to say

If the implementation is easy to explain, it could be a good idea.

or vice versa.

Namespaces is one honking great idea – let's do more than those!

Name is name, please always name

Getting Started with Python

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.