What version of Python should I use if I'm a new to Python?

前端 未结 8 1576
广开言路
广开言路 2020-12-01 20:50

If I\'m absolutely new to Python and am literally reading about printing statements to console, variable types, collections, etc:

What version of Pyth

8条回答
  •  悲哀的现实
    2020-12-01 21:19

    1. Python 3 without any doubt. Today (1 Jan, 2020), the official support for Python 2.7 ends completely - https://github.com/python/devguide/pull/344.

    2. Some major open source projects have committed to stop support Python 2 soon - https://python3statement.org/

    3. If you have some Python 2 code which you want to run with Python 3, here is an official guide - https://docs.python.org/3/howto/pyporting.html

    4. Start with the latest version of Python 3 (currently 3.8.1). Python 3 isn't backward-compatible with Python 2 on purpose because it implements a whole set of new features and clears up the clutter in Python 2 which wasn't really adding anything to the language - https://docs.python.org/release/3.8.1/whatsnew/3.0.html

提交回复
热议问题