Pycharm在创建py文件时,自动添加文件头注释的实例
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: [email protected] @software: garner @file: ${NAME}.py @time: ${DATE} ${TIME} @desc: '''
3.新建一个python,文件如下所示
相关推荐
NANGEBOKE 2020-06-09
NANGEBOKE 2020-11-23
wuguangbin0 2020-11-17
shuhaojie 2020-11-17
skyplay0 2020-11-17
BigYellow 2020-11-16
shuhaojie 2020-08-16
NANGEBOKE 2020-08-15
mmwalker 2020-08-11
wuguangbin0 2020-07-18
vshacker 2020-07-05
jameslaughing 2020-07-04
jameslaughing 2020-07-04
maoyongfan 2020-06-28
hanxia 2020-06-27
无缘公子 2020-06-18