[Python 3.x Official document translation] Whetting Your Appetite Welcome to your use

Source: Internet
Author: User

If you don't much work on computers, eventually your find that there ' s some task you ' d like to automate. For example, the wish to perform a search-and-replace over a large number of text files, or rename and rearrange a bun Ch of photo files in a complicated. Perhaps you ' d like to write a small the custom database, or a specialized GUI application, or a simple game. If you use a computer to do a lot of work, eventually you send Now, you can do this automatically. For example: you want to look up in a large number of text files-replace something in it, or rename or reset some photos in a complex way. Even though you want to write a custom database or a dedicated GUI (graphical user interface) application, it's a simple game.
If you ' re a professional software developer, your may has to work with several C/c++/java libraries but find the usual WRI Te/compile/test/re-compile cycle is too slow. Perhaps you ' re writing a test suite for such a library and find writing the testing code a tedious task. Or Maybe you ' ve written a program this could use an extension language, and you don ' t want to design and implement a whole New language for your application.If you are a programmer, you may often use many C, C + + or Java libraries, but you will find that this is the usual write/compile/test/recompile link that is very slow. Although you are writing a test program to accommodate these libraries and you find that writing test code is a tedious task, or you have written a program in an extended language, and you don't want to redesign and implement the whole new language for your app.
Python is just the language for you.Python is the language you want.
You could write a Unix shell script or Windows batch files for some of these tasks, but shell scripts is best at moving a Round files and changing text data, not well-suited for GUI applications or games. You could write a C/c++/java program, but it can take a lot of development time to get even a first-draft program. Python is simpler to use, available on Windows, Mac OS X, and Unix operating systems, and would help you get the job done M Ore quickly.you can write a Unix shell script or a batch file of Windows for a job, but the shell script has a better effect when moving files and changing text data, but not in GUI applications or games that fit completely, You can write aC, C + + or Java programs, but this can take a lot of development time and even use a program that never appears. Python can be simpler to use on Windows, Mac OS X, or even UNIX operating systems, and this will help you get a job faster.
Python is simple-to-use, but it's a real programming language, offering much more structure and support for large program s than shell scripts or batch files can offer. On the other hand, Python also offers much more error checking than C, and, being a Very-high-level Language, it has high-level data types built in, such as flexible arrays and dictionaries. Because of its + general data types Python are applicable to a much larger problem domain than AWK or even Perl, yet Mans Y things is at least as easy on Python as in those languages.Although Python can be used simply, she is a real programming language. Python provides more structure and support for large programs than shell scripts and batch files. On the other hand, Python can provide more error detection than the C language. And, as a very advanced programming language, she has advanced data type constructs like flexible arrays and dictionaries. Because Python uses more total data types in the domain of large problems than the two languages of awk and Perl, many things are easier to handle in python than other languages.  Python allows you-to-split your program into modules so can be reused in other Python programs. It comes with a large collection of standard modules so can use as the basis of your programs-or as examples to St Art Learning to program in Python.  Some of these modules provide things like file I/O, System calls, sockets, and even interfaces to graphical user interface Toolkits like Tk.python was an interpreted language (interpreted language), which can save you considerable time during program Developmen t because no compilation and linking is necessary. The interpreter can used interactively, which makes it easy-experiment with features of the language, to write throw -away programs, or to test functions during bottom-up program development. It is also a handy desk calculator.
Python enables programs to be written compactly and readably. Programs written in Python is typically much shorter than equivalent C, C + +, or Java Programs, for several reasons:
the high-level data types allow you to express complex operations in a single statement;
statement Grouping is do by indentation instead of beginning and ending brackets;
• No variable or argument declarations is necessary.
Python is Extensible: If you know how to program in C it's easy to add a new built-in function or module to the interpreter, either to perfor M critical operations at maximum speed, or to link
Python programs to libraries the May is available in binary form (such as a vendor-specific graphics library). Once you is really hooked, you can link the Python interpreter to an
Application written in C and use it as a extension or command language for that application.
By the the-the-the-the-language is named after the BBC show "Monty Python's Flying Circus" and has no to do with reptiles. Making references to Monty Python skits in documentation are not only
Allowed, it is encouraged!
Now so you're all excited on Python, you'll want to examine it in some more detail. Since the best-of-learn a language is-to-use it, the tutorial-invites you-play with the Python
Interpreter as you read.
In the next chapter, the mechanics of the using the interpreter is explained. This was rather mundane information, but essential for trying out the examples shown later.
The rest of the tutorial introduces various features of the Python language and system through examples, beginning with Si Mple expressions, statements and data types, through functions and
Modules, and finally touching upon advanced concepts like exceptions and user-defined classes.

[Python 3.x Official document translation] Whetting Your Appetite Welcome to your use

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.