Pycharm在创建py文件时,自动添加文件头注释

版权声明:deamoncao https://blog.csdn.net/cao812755156/article/details/54619198
1.选择File -> Settings

2.选择 File and Code Templates -> Files -> Python Script
编辑代码的样式
#!/usr/bin/env python
# encoding: utf-8
'''
@author: caopeng
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.
@contact: deamoncao100@gmail.com
@software: garner
@file: ${NAME}.py
@time: ${DATE} ${TIME}
@desc:
'''

3.新建一个python,文件如下所示

没有更多推荐了,返回首页