问题:
Should I put the shebang in my Python scripts? 我应该把shebang放到我的Python脚本中吗? In what form? 以什么形式?
#!/usr/bin/env python
or 要么
#!/usr/local/bin/python
Are these equally portable? 这些同样便携吗? Which form is used most? 最常用哪种形式?
Note: the tornado project uses the shebang. 注意: 龙卷风项目使用shebang。 On the other hand the Django project doesn't. 另一方面, Django项目没有。
解决方案:
参考一: https://stackoom.com/question/Sz7f/我应该放-shebang-在Python脚本中-它应该采用什么形式参考二: https://oldbug.net/q/Sz7f/Should-I-put-shebang-in-Python-scripts-and-what-form-should-it-take
来源:oschina
链接:https://my.oschina.net/stackoom/blog/4334550