Python の shebang

Python の shebang#

Python スクリプトの冒頭に次のように書くことで、 python コマンドを使用せずに直接スクリプトを実行した際も Python 3 系で実行するように指定できる。

#!/usr/bin/env python3