Python最简实例:
vim hi.py
print("Hello, World!")
chmod a+x hi.py
python hi.py
Shebang脚本:
vim hi.sh
#!/usr/bin/env python3
print("Hello, World!")
执行:./hi.sh
输出:Hello, World!
Python最简实例:
vim hi.py
print("Hello, World!")
chmod a+x hi.py
python hi.py
Shebang脚本:
vim hi.sh
#!/usr/bin/env python3
print("Hello, World!")
执行:./hi.sh
输出:Hello, World!