现在一般使用python3还是python2?
PHP中文网
PHP中文网 2017-04-17 15:41:12
0
28
1428

现在一般使用python3还是python2?

PHP中文网
PHP中文网

认证0级讲师

reply all(28)
大家讲道理

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.

阿神

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

巴扎黑

Python3 has stricter syntax and more plug-ins

巴扎黑

I am currently using python2. If I plan to write another server, I will take a look at python3

小葫芦

I’m still using 2, I don’t know why, I’m too lazy to change it

大家讲道理

Python 2.7 is partially compatible with Python 3, which is a compromise.

PHPzhong

Generally, Python 2.7 is installed on Linux systems

阿神

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template