Pycharm 新建py文件时自动添加基础信息
环境:Mac PyCharm 2019.1.2(Professional Edition)
位置:Pycharm->Preferences->Editor->File and Code Templates->Python Script
添加如下代码:
# -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # @Author : test # @File : ${NAME}.py
如下图所示:
环境:Mac PyCharm 2019.1.2(Professional Edition)
位置:Pycharm->Preferences->Editor->File and Code Templates->Python Script
添加如下代码:
# -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # @Author : test # @File : ${NAME}.py
如下图所示: