Secret Recipes of the Python Ninja
上QQ阅读APP看书,第一时间看更新

Making scripts executable

Normally, executing a Python program requires typing python <program>.py. However, it is possible to make Python programs self-executing so they don't require typing python as the calling command.