前言
Python 2.7已经于2020年元旦起不再更新,所以当然用 Python 3啦!本文是个小记录。
1 Python 2是被替代的版本
Python 3.0的推出本身就排斥 Python 2。Python 3.0推出时官方文档上的这句话已经说得很明白了:“This article explains the new features in Python 3.0, compared to 2.6. Python 3.0, also known as “Python 3000” or “Py3K”, is the first ever intentionally backwards incompatible Python release. ”
2 Python 2的兼容到3.9截止
Python 3.9 更新时的官方文档是这样说的: “Python 3.9 是最后一个提供 Python 2 向下兼容层的版本,以给予 Python 项目维护者更多时间移除 Python 2 支持,添加 Python 3.9 支持。”
3 推荐 Python 3稳定版
我觉得 Python 版本的选择应该考虑稳定。另外,