[Learn python with me] How to Select a beginner Python version ?, Python beginners

Source: Internet
Author: User

[Learn python with me] How to Select a beginner Python version ?, Python beginners

More than four years ago, I went to interview a returnee startup company before entering yingcai. They need technical personnel with unix development experience, but they were not very attractive to many mature technical personnel because of their current stage, therefore, the relaxation of the conditions can be considered if you are familiar with object-oriented program development. I saw the C # syntax at that time, and the level of mastery of a new language at that time was far slower than today, because I only learned a little bit about it, I do not know many concepts, such as heavy load and rewriting. The first time I heard about the Python language, it was during the interview.

At that time, the interviewer asked me what language I had mastered after learning about my situation. I said what I would do (I am sorry to list it here), And I just learned something C #. He said, Do you know Python? I was confused at the time, and I was so stupid that I didn't know much about these new technologies. As a result, this technology is not very new, but not very popular in China. I learned later that this technology is indeed old. What I did not expect is that in the past four years, this technology has become so popular in China.

Let's get down to the truth. To learn Python, you must start with the open platform. Since we closed our doors, we have been surfing the internet to learn about the technological trends over the past few years and found that open platforms are very popular recently. In addition to open platforms for social networking websites, google and Baidu have also launched their own open platforms. Baidu's style is very Chinese, and it cannot bring up the atmosphere of the lab and academic school. In contrast, Google seems more impressive. After learning about Google's App Engine and seeing that the development language it specified is Python (java is also supported as a second language), we plan to learn this language first.

I bought a Chinese Python textbook and downloaded some videos. Go to the official website Python.org and habitually download the latest Python interpreter. However, it is depressing that the first program written according to the tutorial fails. It seems that Python3 and Python2 are completely different. The program I wrote in The Python2.7 tutorial cannot run normally in Python3. So, go to the Python official website carefully read it again, found such a page: http://wiki.python.org/moin/Python2orPython3. The question in this article is: whether to choose Python2 or Python3?

The first sentence in this article makes me feel cool: Python 2.x is the status quo, Python 3.x is the shiny new thing. Why? This means that you can continue using Python2.x, but we will not upgrade this framework. Python3.x will be a brand new thing. To put it bluntly, we are about to abandon Python2.x. Just like MicroSoft abandoned ASP in the past, the next version of this language will be completely redesigned. The problem is that, after so long development, Python2.x has accumulated a lot of wealth and there are a lot of solutions that can be directly used, while the application of Python3.x is still blank. Which version should I learn as a beginner?

To be honest, I cannot give you a definite answer. The official suggestion is: Which version you ought to use is mostly dependent on what you want to get done. I am more familiar with the path of Taiji than the Chinese. It seems that not only movie stars are good at playing taiji, but also technology stars. However, the official team provides some specific suggestions. Where is Python2.x? First, it has a large number of ready-made function libraries available; second, the current Mac and Linux default interpreter is still Python2.x. In some cases, you have no choice but to use 2.x. for example, when the running environment of your program does not depend on you, Google's App Engine uses version 2.5. However, people officially said that although 2. x is not old, 3. x is also definitely ready as a language, so it depends on you in the end.

My suggestion is that if you have a specific project to do, or you want to earn a job within half a year and want to earn a job, I suggest you learn 2 X. For example, if I want to try Google's open platform, I will select 2.x. If you are only interested in the language and want to learn it, but you do not have a specific timetable to say what I must use it to do someday, then I will discuss how to learn 3.x, so that you can completely grow with this language. When its application environment is mature, you will be available. In addition, if you are a friend of x, I suggest you start learning 3. x at the right time if you have time and energy. 3. x is the future.


Which python version should be used for beginners?

You Happen, huh, huh.
Conclusion: The 2.7 series is recommended;
Specific reasons:
I have just written a summary post and explained it in detail. You will know it at a Glance:
[Arrangement] summarizes the differences between Python 2 (Python 2. x) and Python 3 (Python 3. x ).

For more information about how to learn python, see:
[Arrangement] how to learn Python + how to effectively use Python-related network resources + how to use Python Manual)

(No post address is provided here, so you can find the post address by google title)

Which version should be used for beginners to learn python?

At present, most of the Chinese tutorials are on version 2.5, so if the English language is poor (and there is no programming basics), it is best to start from here. At present, not all modules are supported. The error is that most modules do not support 3.x.

The domestic outlook is that you can complete XXXX independently.

3. X abandons the backward compatibility and is determined to perfect Python, but the update of each module is not optimistic. (Why does it take 3-5 years)

Python involves a wide range of aspects. In fact, all things can be done in any language, that is, the characteristics of their respective languages determine whether this language is suitable for this aspect.

Python is suitable for rapid development. The explanatory language causes low running efficiency, but the development speed is higher than that of other languages.

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.