pyCharm IDEA 创建文件时自动带出时间和作者

pyCharm

访问步骤

File-->Settings-->File and Code Templates-->Python Script
image
image

# -*- ecoding: utf-8 -*-
# @ModuleName: ${NAME}
# @Funcation:
# @Author: darling
# @Time: ${YEAR}-${MONTH}-${DAY} ${TIME}

def darling(name):
    print(f'Hi {name}')

if __name__=='__main__':
    darling('Darling')

IDEA

访问步骤

File-->Settings-->File and Code Templates-->Python Script

/**
 * TODO
 * @version 1.0
 * @author darling
 * @desc 
 * @date ${DATE} ${TIME}
 */
public class ${NAME} {
}
posted @ 2022-07-28 15:08  darling331  阅读(112)  评论(0编辑  收藏  举报