A concise introductory course in Python learning __python

Source: Internet
Author: User
Tags object model pickle package string format time and date

reproduced in the original: http://blog.csdn.net/ithomer/article/details/8907268 very grateful.

My friend asked me how I could master Pythonquickly. I think python contains a lot of content, together with a variety of standard library, expand the library, disorderly flower gradually want to charming eyes, wanted to write a fast Python tutorial, on the one hand to maintain the simplicity of speech, on the other hand, as far as possible, so that readers without background can start learning from the foundation In addition, I focus on a small concept in each article, hoping that people can read it quickly in their spare time.

Small Reminder

1. The tutorial will focus on the Python basics, the syntax is based on Python 2.7, the test environment is Linux and no modules outside the standard library are used.

2. I will focus on the Python backbone so that readers can develop a concept of python at the fastest time.

The 3.linux command line starts with $, such as $ls, $python

The 4.Python command line starts with >>>, such as >>>print ' Hello world! '

5. Note will start with #

suggested

1. Tap the commands in the tutorial into Python to see the effect.

2. After reading the tutorial, you can do some exercises.

===============================================

Python Basics Hello world!

Python Basics 02 Basic data types

Python base 03 Sequence

Python Base 04 operation

Python base 05 Indentation and selection

Python Basics 06 Loops

Python base 07 functions

Python Basics 08 Object-oriented Basic Concepts

Python Basics 09 Object-oriented further development

Python Basics 10 Look Back



Python Advanced 01 Dictionary

Input and output of Python advanced 02 text files

Python Advanced 03 Module

Parameter passing of Python advanced 04 function

Python advanced 05 Cycle Design

Python advanced 06 Loop Object

Python Advanced 07 Function object

Python Advanced 08 Error handling

Python advanced 09 Dynamic type


Python Quick Tutorials Summary

Python complements the 01 sequence method

Python plus python tips

Python Supplemental python built-in function checklist

Python's brief History of Python supplements

Python supplemental 05 string format (% operator)

Python Supplements the Python Way

In the support of everyone, basically completed a quick tour of the serial. I learned a lot from this process. After Python's foundation, the Python standard library naturally becomes the next challenge. The importance of the Python standard library is:
1 It is part of Python.
2 python philosophy is a problem with only one of the best solutions, these standard libraries provide a standard solution for the corresponding problem.
3 Many important Python projects, such as Django, NumPy, also need to borrow the standard library. Understanding the standard library is a prerequisite for continuing learning.

Hope to give you a chance to learn from this.

The main difficulty with the learning of the Python standard library is that it requires basic knowledge of a certain operating system. One of the common questions I've read about the Python standard library tutorial is that you already know the basics of the operating system and the Web. Of course, if you are experienced in the system is good, but if it is unfamiliar, then learn the Python standard library has great difficulty. However, it takes a lot of effort and time to learn system knowledge comprehensively. For this reason, I also add a Linux system-related sticker, which is mainly used to discuss the basic concepts and systems of Linux. These concepts and systems can form a basic framework, and after that, you can learn more calmly about the Python standard library. You can also choose to continue reading the standard library until you need to supplement that knowledge by reading these system-related articles based on the links given in the Python standard library. Linux Concepts and Systems

Python standard library--a cursory glance

Learning preparation for the Python standard library

Python standard library 01 regular Expressions (re package)

Python standard library 02 time and date (times, datetime package)

Python standard library 03 path and file (Os.path package, Glob package)

Python standard library 04 file management (partial OS package, Shutil package)

Python standard library 05 storage objects (Pickle package, Cpickle package)

Python standard library 06 child processes (Subprocess package)

Python standard library 07 signal (signal package)

Python standard library 08 multi-Thread and Sync (threading package)

Python standard library 09 process information (partial OS package)

Python standard library 10 multiple process preliminary (multiprocessing package)

Python standard library 11 multi-process Exploration (multiprocessing package)

Python standard library 12 math and random numbers (Math package, random package)

Python standard library 13 loop (Itertools)


Python has many applications on the web, whether it serves as a server-side HTTP service (such as watercress) or as a client crawl Web page. Python provides an interface to an operating system socket that can be programmed directly into the socket. There are also various advanced packages that can implement different network functions. The biggest advantage of Python's web apps, however, is the combination of its own advantages, such as simple syntax, high readability, and powerful scripting capabilities that allow Python developers to quickly develop excellent web products.
This will be limited to the network packages provided in the Python standard library.

Python Network 01 original python server

Python Network python server evolution

So far, if you've been following the Python tutorial, I expect you've been able to write some useful Python programs (even larger programs). If you've reached your goal, I think your Python study can come to an end. (congratulations) Of course, I will continue to add some of the previous parts, such as some standard library packages, such as more Python network applications and so on.

In the following sections, I want to delve into the Python system. Python has a rich syntax, but these are all based on a very simple object model. This part of the content is not necessary to use Python. But if you're not satisfied with the positioning of a Python user and engage in some python development (such as making Python tools, like writing a framework), you'll want to have a better understanding of the object model. In addition, I will add some of the topics left in the previous section.

Python depth 01 Special methods and multiple paradigms

Python Depth 02 Context Manager

Python dive into the properties of 03 objects

Python depth 04 Closures

Python depth 05 adorners



Reference recommendation:

Concise Python Tutorials

Python Quick Tutorials

The Python Tutorial

Python tutorial Spoint

Related Article

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.