pycharm中python文件模版

!/usr/bin/env python

encoding: utf-8

"""
@author: xxxx
@license: (C) Copyright 2018-2020, xxxx
@contact: [email protected]
@software:
@version:1.0.0
@file: {DATE} ${TIME}
@desc:
"""

将上述内容贴在File->Settings的Editor下面File and Code Templates下的Python Script里即可,以后每次新建python文件时会自动带上这个文件头

你可能感兴趣的:(pycharm中python文件模版)