[Pycharm]设置“__author__”

修改这个作者名的步骤:

依次点击:File->Default Settings->Editor->File and Code Templete -> Python Script

如图:修改右面部分

屏幕快照 2016-01-06 上午11.23.43.png

{PROJECT_NAME} - the name of the current project.{NAME} - the name of the new file which you specify in the New File dialog box during the file creation.
{USER} - the login name of the current user.{DATE} - the current system date.
{TIME} - the current system time.{YEAR} - the current year.
{MONTH} - the current month.{DAY} - the current day of the month.
{HOUR} - the current hour.{MINUTE} - the current minute.
{PRODUCT_NAME} - the name of the IDE in which the file will be created.{MONTH_NAME_SHORT} - the first 3 letters of the month name. Example: Jan, Feb, etc.
${MONTH_NAME_FULL} - full name of a month. Example: January, February, etc.

修改好之后记得重启Pycharm哦!!

# coding=utf-8
"""
@Author : 
@Email: 
@createtime : ${DATE} ${TIME}
"""
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容