依次点击:File->Settings->Editor->File and Code Templete–>python script
#!/usr/bin/env python # -*- coding:utf-8 -*