pycharm中python文件模版

!/usr/bin/env python
encoding: utf-8
“”"
@author: xxxx
@license: © 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文件时会自动带上这个文件头

发布了41 篇原创文章 · 获赞 0 · 访问量 532

猜你喜欢

转载自blog.csdn.net/m0_46560389/article/details/105206089