大家讲道理2017-04-17 15:43:12
If the library you depend on only supports 2, -----------> use 2
If you like to pursue new things,------------>Use 3
If you have played 2 before and now want to play 3, --------> 2 to upgrade to 3 (refer to the link below)
http://woodpecker.org.cn/peintopython3/porting-code-to -python-3-with...
According to the completeness of **, what 3 can do, 2 can also do, and what 2 can do, 3 can do better.
If you are a Virgo and are too confused, you might as well change to a language with no version differences,
According to the completeness of **, if python can do it, *** can also do it, and it may even do better.
阿神2017-04-17 15:43:12
It depends on the demand. Some modules such as twisted do not support python3. 2.7 is now mostly supported. If you cannot use a few modules that do not support 3.x, it is recommended to use 3
巴扎黑2017-04-17 15:43:12
I am currently using python2. If I plan to write another server, I will take a look at python3
大家讲道理2017-04-17 15:43:12
Python 2.7 is partially compatible with Python 3, which is a compromise.
阿神2017-04-17 15:43:12
If you don’t have any historical baggage, just use 3 decisively. I wrote a lot of code for 2 before, but I have no choice but to use 2. Most commonly used libraries now support 3.