Introduction to the python of arcpy

Source: Internet
Author: User

1. Introduction to Python

Python is an object-oriented, interpreted computer programming language; Python is an easy-to-learn, powerful programming language. It has high-efficiency high-level data structure, simple and efficient implementation of object-oriented programming. Python's concise syntax and support for dynamic input, combined with the nature of explanatory language, make it an ideal scripting language in many areas of most platforms, especially for fast application development. It is often nicknamed the glue language, and it is able to easily connect various modules made in other languages, especially in C + +. A common application scenario is to use Python to quickly build a prototype of a program (sometimes even the final interface of the program), and then rewrite it in a more appropriate language with the parts that are specifically required.

2, the creator of Python

The creator of Python is Guido van Rossum (Guido van Rossum), who received a master's degree in mathematics and computer Science from the University of Amsterdam in 1982. During the Christmas of 1989, in Amsterdam, Guido was determined to develop a new script interpreter as an inheritance of the ABC language in order to get rid of the boredom of Christmas. Python was chosen as the name of the program because he was a fan of the comedy community called Monty Python. In early 1991, Python released its first public release.

3, the design philosophy of Python

When we open Python idle, enter: Import this on the command line, and the interesting output appears as shown in:

  

The specific translation is as follows:

1, Beautiful is better than ugly.

Beauty is better than ugliness.

2, Explicit is better than implicit.

Straightforward is better than obscurity.

3, simple is better than complex.

Simplicity is better than complexity.

4, Complex is better than complicated.

Complex than Tangled.

5, Flat is better than nested.

Flat is better than nesting.

6, Sparse is better than dense.

Sparse is better than dense.

7, readability counts.

Readability is of great significance.

8, special cases aren ' t special enough to break the rules.

Exceptions can, but not exceptions, break the rules.

Although practicality beats purity.

Although we are inclined to be practical between purity and practicality.

9, Errors should never pass silently.

Mistakes are never allowed to pass silently.

Unless explicitly silenced.

Unless clearly stated is the pass quietly.

10, in the face of ambiguity, refuse the temptation to guess.

In the face of ambiguity situation, to reject any temptation to guess.

11, there should is one--and preferably only one--obvious the-do it.

The obvious approach should be one, and rather one.

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

Although this may not be obvious at first, you are not the Dutch Python father.

12, now is better than never.

"Now" is better than "never".

Although never is often better than right now.

Although "never" is often better than "immediate".

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

If an implementation is difficult to explain, there is a problem with the idea of implementation.

14. If The implementation is easy-to-explain, it may good idea.

If an implementation is easy to explain, it might be a good idea to implement.

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

Namespace really is a good idea-let go and use it!

4. The advantages and disadvantages of Python language

Advantages:

Simple, easy to learn, fast, free, open source, high-level language, portability, explanatory, extensible, embeddable libraries:

Disadvantages

Single-line statements and command-line output problems, syntax is unique, and runs slowly (relative to c\c++):

Introduction to the python of arcpy

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.