系统运维专家

pycharm中python文件模版

2019-07-01  本文已影响0人  以梦为马ll不负韶华

!/usr/bin/env python

encoding: utf-8

"""
@author: xxxx
@license: (C) Copyright 2018-2020, xxxx
@contact: xxxx@xxxx.cn
@software:
@version:1.0.0
@file: {NAME}.py @time:{DATE} ${TIME}
@desc:
"""

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

上一篇下一篇

猜你喜欢

热点阅读