What are the basic learning methods and recommended textbooks for Python?

Source: Internet
Author: User
Just getting started with python, I hope you can get started with python. I hope you can help me reply to the following content: I have just learned python for less than three months. I will share my learning experience.
Six months ago, I heard from a Daniel that python is very good. I always wanted to learn it, but I was very lazy and didn't start it.
During the winter vacation this year, I started planning a website with several students and discussed what to use. I thought of python. (In the end, we use python and then the web. py framework ).
During the winter vacation, the first book I read was "python basics tutorial", which was also recommended to me by a Daniel. This book starts from the basics of python, ignore some python features that are too detailed or amazing, and focus on python applications. There are several chapters of python development cases above, which are of great reference significance.
The first program I wrote in python was the signing program of Kingsoft fast disk, referring to some other people's Code. At that time, I had no idea about many python libraries and started to use them from that time.
Then I started school, and I was very familiar with the course selection. I used python to complete a small program that automatically grabbed the course. I started the course for two weeks, I really jumped to the class, but I don't want to go back. =
Then Netease offered a summer internship at Jiao Tong University. At that time, I received a post from python and got a written test. This written test has become a huge turning point for me. I found that I could not do anything (I was really anxious, but I learned it for only one month. I thought I was really good enough to take the test ). List derivation, lambda expressions, decorator... and so on. I am basically in the blank stage. I feel like I write python and write C, it's very ugly, and I don't have any pythonic.
Then I was not happy. It was just a month later. When I was free, I went to github or the python community to read the code written by others, and thought about others' experiences. I have organized several blogs over the past time, it is related to python. Some people say that it is not important to learn how many programming languages. If a new programming language changes your way of thinking, it is actually learned. For the first time, I began to have a desire to pursue beautiful and cool code. So I learned how to study the features of python different from those of C, and how to program to function, and then use it. For example, now I will use map/reduce to implement a piece of code from time to time, and I will use python iterators and generators from time to time. In short, during this period of time, I learned how to first observe the concise code and style of others, then study the features of python by myself, and then implement the application.
During this period of time, I will also flip through the python cookbook, which has a lot of minor issues for reference.
I feel that I am now familiar with using python as a usual tool. In the following phase, I want to study more about object-oriented. As a matter of fact, I think it is better to go directly to document without having to get started with python. The above are very comprehensive and standard things. Later, I wrote and practiced more, started some small programs, learned some common libraries, and used python well. It is very important to practice more. In addition to small programs, python has many open-source frameworks for websites. It is also good to learn how to build a website.
Python is a fast-developing language that is constantly changing. If you love python, you can go to various communities to see the latest news. If you just use it as a tool, you will be very happy to use it. There are a lot of libraries that are very convenient and can basically do anything you can think, in particular, it is very troublesome to implement C in a lot of work, and python is very convenient. Recently, I am working on a mail processing project in the school. I have a uniform mailbox, and the teachers will send the email to that mailbox if there is a notification. python can automatically retrieve the email and read it into the database and put it on the website, all these python functions can be implemented.
If you go deeper, you can study the python source code or the source code of some python libraries, which is implemented in C.
------
These are my personal experiences. I am a beginner in python... CS 61A Fall 2013: Structure and Interpretation of Computer Programs

For over 1100 students, all courses have videos, all lab discussion sync posts, with exams, the subject can keep up with the progress and finish the course, which is equivalent to failing to pay the high tuition fee of UC to receive the top 30 Education Ah Python | Codecademy
Focus on practice as required. It should be quick to get started. Python tutorial-liao Xuefeng's official website Python Getting Started Guide
This is recommended for websites: PythonTab: Python Chinese developer community portal The official documentation is very good. See what you want to do. Some web frameworks are like tornado, flask .. these github files are open-source and can be viewed by other people's Code. There are a lot of python libraries, and it is good to know what tasks are completed and what libraries are used. It is fun to write scripts, write crawlers, and write crawlers in python.

Entry 3: select one

Fluent Python

Python Playground

Introducing Python: Modern Computing in Simple Packages

We recommend easy learning methods. books recommend "stupid ways to learn Python (the third edition)", and videos recommend the "getting started with Python for turtles" on the fishc Forum. Although I am not very familiar with it, but it is very easy to learn. The only bad thing is that the author of the book "stupid way to learn Python" is Python2. Just do it.

Learning from practice is the best way, especially when there is a foundation for other languages. Although the program written at the beginning may not be very pythonic, it is better to read more and write more.
The most important official document is to get started with the tutorial in the document. You can start to write the actual program. Each person has a different background. I recommend a book that I like very much for beginners and those who already have the foundation of other programming languages.

1. Beginner

I recommend Learning Python-Learning Python (version 5th) (photocopy) (Douban) Published in July 2013.

The author's own background is different, and the taste of writing a book is also very different. For example, the author of Dive Into Python is more like ShareMy own experiences (the developer is mostly from this class. Oh, I suggest you read the story of the author. It is also interesting, there is a threshold for the reader's own level. For beginners, what I need is TeachFor the purpose of the book, a speech will be more rigorous, and the "Although I do not understand this place, I do not want to ask others for fear of being considered as a small white" such problems are easy to understand.

Mark Lutz, author of Learning Python, is an experienced instructor. on his website, Mark Lutz's Python Training Service If you mention his background, extract a paragraph:
Mark Lutz is the most experienced Python trainer in the world. he has been teaching Python classes for 17 years, and has taught some 260 sessions for 4,000 students in the US and abroad. his classes use instructional techniques which mirror those in his successful books, augmented by the immediate feedback and focus-enabling context that only a live class can provide. from perse corners of the software field, clients both large and small have chosen Mark Lutz's classes for their Python training needs.
In addition, the sample programs in this book, except for the variable names that are less Pythonic and the annotations are not very standard, each sample program is worth imitating and has limited space. For example:

class Person:     def getName(self):          if not valid():               raise TypeError('cannot fetch name')          else:               return self.name.transform()     def setName(self, value):           if not valid(value):               raise TypeError('cannot change name')           else:               self.name = transform(value)

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.