Python スクリプトのひな型

以下のような内容をエディタで保存する。

python_script_template.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
 
def get_title(filename):
    pass
 
def main():
    print('Current title: {}'.format(get_title('test.m4a')))
 
if __name__ == '__main__':
    main()

参考文献

PEP 3120 – Using UTF-8 as the default source encoding | peps.python.org