博爱 Python:为 PyCharm 设置模板,添加默认信息
2017-10-31 本文已影响153人
95c9800fdf47
Mac 环境下进入 PyCharm 设置 选项:
选择 editor ==> File and Code Templates ==>Python Script ,然后输入模板:

模板内容:
# !/usr/bin/python3
'''
-*- coding: utf-8 -*-
@Author : 博爱1616
@Time : 2017/10/31 下午4:34
@Software: PyCharm
@File : aa.py
'''
然后,点击 下方的 apply ,点击 OK按钮,试试新建一个 .py 文件看看!
