in python #! Meaning

Shebang symbols on LINUX (#!)
#! This symbol is called Shebang or Bang-Sha
Shebang Unix systems usually at the beginning of the first line in the script using the
specified file to execute the script interpreter
steps Shebang, the
use of which the query interpreter python3 the path where the
$ which python3

modify the main python file to run, add the following in the first line
#! / usr / bin / python3

modify the file permissions main python file, adding execute permissions
$ chmod + x cards_main.py

executed when needed program can
./cards_main.py

Guess you like

Origin www.cnblogs.com/haoyufang/p/11816238.html