Which python2 or python3 has a high usage rate

The python language was born in the 1990s, and it is now a 25-year-old uncle-level language (the same era as it is also a famous java which was released in 1995 and has been popular for decades. ). But Python's real fame is many years later than Java, in fact, it is mainly due to the changes in the application field. (Guess why, right the emergence of big data)

Python2

It is a very important version of Python. The earliest version started in 2001, especially since the release of py2.5 in 2006. Python's functions have gradually become stronger and gradually stabilized, and it is almost 1-2 It was increased by one version around the year, and it started to become popular around 2008. Python3 was first released in 2008, but the version of py3.0 was very unstable, so the community was updated quickly, and it was updated in almost a few months. once. So at the beginning, it was not used by many people. It only began to stabilize slowly when python3.4 was delivered when the spring flowers bloomed in 2014. Let’s look at a data below. This is the one made by Python Community Link and some websites in 2014 The survey, regarding Python2/3, some of the results are as follows:

1).97.51 %Users are still writing Python2 code

2).60 % Of users write Python3 code

3).78.09 % Of users write more Python2 code

4).77.09 % Of users agree that Python3 currently has some operating systems in Linux that already use Python3 by default:

1). Arch Linux (lightweight Linux operating system)

2). Ubuntu 16.04 (a Linux operating system based on desktop applications)

3). Fedora (continuation of Redhat desktop version)

**The main difference between Python2 and Python3: **

The latest data is that there are two versions of Python: one is version 2.7.12 and the other is version 3.5.12. Then Python2 is running well, why suddenly a Python3 is released, in fact, to solve some history in Python2 The first problem is the string problem:

  1. Chinese text and binary data are a mess. Whether str in Python represents binary data or text data is ambiguous. Text can represent both text data and binary data. This is very troublesome. When such errors occur, we are very troublesome. Hard to realize. The second is the support for Unicode. Since python was released as an open source in February 1991, this means that it was earlier than the first version of the Unicode standard released in October 1991. In the next few years, languages that appeared later than the Unicode standard chose to implement their own str type on the basis of supporting Unicode encoding, which put Python 2 in an awkward situation. Currently is an era of python2/3 coexistence, these two versions are incompatible.

  2. Python2 is now only doing bug fixes and maintenance work related to compatibility of new hardware and operating systems. No more new features will be added. Python2 is only supported until 2020. Now Python is evolving towards version 3. In the process of evolution, a large number of codes for version 2.x need to be modified to run, so there are currently many The third party library is temporarily unavailable on 3.x. But you can imagine, maybe the situation will be better in a few years, after all, there are many excellent programmers in the world who are migrating some libraries from Py2 to Py3.

  3. The choice is still to be based on your own needs. If it is enterprise development, you must meet the needs of the work, especially the dependent software can only run under Python2, and Python2 is preferred. For example, your development needs to rely on a large number of third-party libraries (because learning Python is very One of the big reasons is because it has thousands of third-party packages), like a large number of data analysis, scientific computing, or choose Python2. If you are learning, researching, and willing to embrace changes, then it is recommended to learn Python3, Because it is the future direction. Conclusion: Programming is actually about the understanding of programming ideas and the accumulation of experience. Don't waste a lot of time because of entanglement in learning Py2 or Py3.

  4. The ideas in Py2 and Py3 are basically the same, and the moves are similar. When you are familiar with Python to a certain program, it only takes a short time for people who know Py2 to learn Py3. So don't worry about the subtle differences in grammar, and waste valuable learning time. Well, the grievances and hatreds of Python2 and Python3 are here (they will still love and kill each other for a period of time). I hope to give beginners some inspiration. If you don't understand anything, you can leave a message and discuss with me.

View extension:

**Learn Python 2 or Python 3? **

Luo Zhenyu's New Year's Eve speech this year, "Friends of Time" has a point of view, to the effect that people have a plot of abuse, and sometimes hope that others will be rude to him. To this end, he also cited two examples, namely "Jobs's attitude towards consumers" and "He Caitou does not respect his dietary needs". At the end, he still enjoys the sentence: I love him to death, treat me Wouldn't it be more rough!

Seeing that many new students were hesitating to learn Python 2 or Python 3 in the process of learning Python, they were too late, wasted a lot of time, and missed the opportunity for promotion and salary increase. I really feel very sorry. Therefore, I can’t help but want to be rude to everyone once and give you a rude and correct answer:

Should I learn Python 2 or Python 3?

Have to learn!

This answer may be unexpected and easy to refute, for example:

So far, this article about python2 and python3 which has a high usage rate is introduced here. For more information about which python2 and python3 are used, please search for the previous articles of ZaLou.Cn or continue to browse the related articles below. I hope you will see more in the future. Support ZaLou.Cn!

Recommended Posts

Which python2 or python3 has a high usage rate
Python or JavaScript which is easy to learn
Which is easy to learn python or php
Which version should a novice learn python download?