Pycharm在创建py文件时,如何自动添加文件头

2024-12-17 19:42:57
推荐回答(1个)
回答1:

可以自行定制。给你个模板

#!/usr/bin/env python
# encoding: utf-8
'''
@author: xxxxxxxx
@license: (C) Copyright 2013-2017, xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
@contact: xxxxxx@gmail.com
@software: xxxxxxx
@file: ${NAME}.py
@time: ${DATE} ${TIME}
@desc:
'''