Why do people write #!/usr/bin/env python on the first line of a Python script?

后端 未结 21 2207
刺人心
刺人心 2020-11-21 06:16

It seems to me like the files run the same without that line.

21条回答
  •  误落风尘
    2020-11-21 07:08

    It tells the interpreter which version of python to run the program with when you have multiple versions of python.

提交回复
热议问题