Purpose of #!/usr/bin/python3

前端 未结 6 694
遇见更好的自我
遇见更好的自我 2020-11-30 16:53

I have noticed this in a couple of scripting languages, but in this example, I am using python. In many tutorials, they would start with #!/usr/bin/python3 on t

6条回答
  •  遥遥无期
    2020-11-30 17:42

    1. And this line is how.

    2. It is ignored.

    3. It will fail to run, and should be changed to point to the proper location. Or env should be used.

    4. It will fail to run, and probably fail to run under a different version regardless.

提交回复
热议问题