pycharm创建文件时如何自动生成注释

Preferences | Editor | File and Code Templates | Python Script添加:
#!/usr/bin/env python

-- coding: utf-8 --

@Time : ${DATE} ${TIME}

@Author :laixiaobin

@File : ${NAME}.py

关闭