1,獲取Python解釋器
執(zhí)行命令type -a python3
得到結(jié)果python3 is /usr/local/bin/python3
2,Python腳本第一行添加注釋

3,cd到Python腳本所在文件夾
執(zhí)行./script.py
1,獲取Python解釋器
執(zhí)行命令type -a python3
得到結(jié)果python3 is /usr/local/bin/python3
2,Python腳本第一行添加注釋
3,cd到Python腳本所在文件夾
執(zhí)行./script.py