假设我有一个想要与人们广泛分享的Python命令.让我们假设已经安装了Python3.我应该期望用户拥有哪种二进制代码,python
还是python3
?
例如,告诉用户运行以下命令哪个更好:
python -m http.server
或者运行这个程序
python3 -m http.server
?
In Ubuntu 22.10, the python3
binary is available, but not python
, so the latter would be better. Can I expect the same for all Python 3 installations on different operating systems?
请注意,我根本不想支持Python2,as it has been sunset,而Python3从2006年就已经推出了.