Why is '#!/usr/bin/env python' supposedly more correct than just '#!/usr/bin/python'?

后端 未结 5 2107
悲哀的现实
悲哀的现实 2020-12-12 20:34

Anyone know this? I\'ve never been able to find an answer.

5条回答
  •  醉酒成梦
    2020-12-12 21:11

    You may find this post to be of interest: http://mail.python.org/pipermail/python-list/2008-May/661514.html

    This may be a better explanation: http://mail.python.org/pipermail/tutor/2007-June/054816.html

提交回复
热议问题