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:
- Powerful features
- Developers familiar with a certain technical reserve
- There are some optional control resources
- Expansion of the number of user levels
Advantage 2:
- Rapid development
- Very rich user and development control
- There are several success stories 43things, Odo
- Support Ajax
Advantage 3:
- Powerful features
- Google's main platform
- Has released Zope3
Python Web Framework Advantage 4:
- Rapid development
- Ror mode
- Have a certain amount of time to accumulate, the corresponding development tools and modules
- Support ajax,i18n
- Low development work Volume
- Python language, quick to install and get started
Advantage 5:
- Clear functional Framework
- Low coding volume and high development efficiency
- Have ready-made templates to reduce UI effort
- Foreign web site development and application selection hotspot
- Can communicate more resources
- 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