#!/usr/bin/env python role

#!/usr/bin/env python

Usually appears on the first line of the python file, indicating the interpreter path, which is only useful in linux.

This line only works if ./1.py executes the code in this way. (And doing it like this: python 1.py doesn't work.)

 

If the python interpreter in your system is renamed python2, this line should be changed accordingly:

#!/usr/bin/env python2

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325017425&siteId=291194637