Python3 0 Basic Self-study method?

Source: Internet
Author: User
Tags knowledge base wordpress blog
I am an ordinary junior high school graduate, now work in steel mills. I see many Daniel who knows Chuang Yu in the know. So I think I should also be like them. So now want to use spare time to learn programming, do not know whether to learn Python is appropriate, but see everyone agrees with a "make on the cow." So I want to learn Python first, and then study and discuss with Daniel. But there are 2.X and 3.X versions of Python found. A lot of study materials are 2. x version of. I would like to ask you, Daniel, for such a situation, there is no good advice, or study materials recommended.

Reply content:

@Fooying said well, but there are some details I need to add:
    1. Python 3.x is not completely incompatible with 2.x code, as long as you follow certain specifications, using packages such as six, programmers can fully develop 2/3 compatible programs. In addition, the official also launched a 2TO3 tool to help code migration, folk also got a 3to2 tool. If you want to write a 2/3 compatible program, here's a good check list:porting code to Python 3 with 2to3.
    2. It is not recommended to start the second edition of Python core programming, for reasons related to scum Songji, please Google yourself for details.

From the perspective of development, Python3 filled out 2 of the pits, for ordinary users, the main difference is (Strings, Unicode) became (Strings, Bytes), widely used iterator, followed by the introduction, expansion of some advanced mechanisms, such as metaclass, parameter annotation, "started" target and so on. From an ease of use point of view Python3 2 (at least I think so), but unfortunately, some of the key package has not had time to port to 3, and many of the company's projects considering the cost factor also did not timely the original Py2 code port to 3.


For more information, please refer to an article in my blog: Python Learning Guide


PS1: Why didn't anyone mention the problem of illegal employment of child labour in steel mills?

PS2: Please focus on English, math and algorithmic learning.

I made a self-study Python group, Welcome to the cheat Station exchange experience ~
30 days to try something new

Many of the things you need to do repeatedly on the Web can be written in Python scripts.
For example, some good articles you want to save, or automatically send to Kindle e-book regularly
Python crawler pushes articles to kindle ebook
Github:github-rockyzsu/zhihutokindle

Python brute force hack wordpress blog Background login password



Batch get shadow Mowgli picture Python_ Group (in link repair)
(in link repair)
Use Python to hack a 211 University BBS forum user password (in link repair)
It feels like you're doing it for a purpose, and that motivation is more specific. Currently ready to crawl stock information, do research use (FRY)
More 30 days to try something new Thank you for inviting me.
First of all, praise the next landlord of Python is the beginning of P capital
Next, Python 3.x cannot be backwards compatible with 2.x.
This means that you take someone else's code written in Python 2.x in 3.x environment is not directly run, need to change
Now many of the online code and the Python code in the document is generally 2.x, usually using Python 2.7 (many companies with Python, but also continue to use Python 2.7, not 3.x)
If the landlord wants to learn 3.0, it is recommended to first understand the difference between two iterations, and then learn
Then generally in the study of Python I will recommend a book "Python Core Programming", now seems to have a third version, but no Chinese version, the latest version of the Chinese version is the second edition, the third version is not clear, the second version is Python 2.x, but the basic grammar of those must be basically the same, do not say, After you understand the two major versions of the difference, the same is the study material
Then our company usually asks the interviewer to do two questions during the interview:
1, write a crawler (with thread pool, etc.)
2. Write a forum Program
Don't think it's easy at first glance, how to write a crawler is a lot of attention; then write the forum program, you can learn Python web framework, such as web.py Django, etc.
In addition, only a little, while learning the side code, practice is the sermon, in the computer world, said more, not to do, are all nonsense ... In fact, there is not much difference, that is, print to parentheses, input without Raw,map filter By default is an iterator instead of a list, the import mechanism has changes such as relative reference. , no need to consider coding and so on.

3 inside to get rid of 2 inside a lot of inexplicable place, worth to learn, because 2 has a lot of upward compatibility, said to 3->2 than 2->3 easy.

It's no problem to graduate from junior High School. Self-taught words can see Dive into Python 3 deep python 3 , but still have to learn to check English materials, Chinese Python data is not very full.
Well, there are objections to why "Dive into Python" is not worth recommending. , but I'm looking at this (but not the 0 basis), and Python's Concise handbook is good.
It's really best to look at official documents, but not all: Overview-python 3 documentation (English) 3.2.2 Documentation Well, the most important thing is to take advantage of the help function in Python. what function does not, direct help (function name without parentheses) is good (but English).

Python is not a door to you to get a study of science and learning is finished, you use it is learning, it is best not to learn python, there is a goal, such as playing games, Web site or a tool (crawler), do not be afraid to do while learning.

And most importantly, I look at the problem described your goal is not to learn python, but to learn programming, you can understand python after a few more to see the various languages, see the various methods of programming, how to abstract how to reuse, Python object-oriented and other language object-oriented, and even functional programming. It's not hard to be sure, as long as you find fun in programming, like programming rather than simply programming for work or something. Without him, 30,000 lines, not Dafa also not, come, follow me, save the world's responsibility to you. There are many Python 3 data online, no matter what you do, use Google is the first step.
Simply send out the address directly.
Python 3 Getting Started Tutorial: / http liam0205.me/attachment/ python/the_python_tutorial_zh-cn.pdf Read a book, Pyhthon3 self-study books (13-15 years of books, not before the Read):
    1. Getting started:Introducing Python(English edition 2014.4.8) The Chinese translation version of this book:Python language and its Application (Chinese version 2016.01 published, can be booked, two weeks ago has been handed). In addition, the introduction also recommends Liaoche Teacher's website: The Python tutorials (both 2.x and 3.x are available in two versions) are:http://www. liaoxuefeng.com
    2. Advanced:Learning Python, 5th Edition(English version 2013.6 published) This book is only in the fourth edition, there are some differences, but the corresponding look, almost:Python Study manual fourth edition (Chinese version published in April 2011)
    3. Advanced Skills honed:python cookbook,3rd Edition (English version 2013.5 published) This book Chinese translation version:python Cookbook (third edition) Chinese version (Chinese version) Published on May 1, 2015)
To find a 2.x and 3 difference summarize a kind of article, then began to learn ... In addition, do not stop on such issues, the key is to start doing can have hobbies. Gradually accumulate this own ideal in the process of earning a living. Do not forget the original intention, continuous learning and accumulation.
Like the 1 floor, Daniel's answer is very good. It's a definite direction. Getting started starts with a wide range of 2 applications. x start, the foundation is playing well, later master other's also easy many.
Now the network is convenient, indeed to self-study to provide a great convenience. But it is also easy for people to drown in the ocean of consulting. Choose a good way to start learning is the most important.
I do not know how the Lord is progressing now. These years abroad to promote the programming language from childhood learning activities, many entry-level sites can play while learning.
Learn almost, will practice while groping, this is the perfect rule of programming learning. Can do the website, do the program to achieve some functions, regardless of meaning.
In addition: Instagram, watercress, 42qu, known to be made in Python. Learn English well
Make good use of NetEase open class
More practice, preferably practice
Like you can see here Codecademy
Fools
——————
Of course, you have to say that you are a junior high school degree? Not sure how your basic knowledge base, the best amateur to learn high school knowledge again
You can also consider Dahne technology, a training school

I wish you success!
  • 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.