打开pycharm,依次点击 File->settings->Editor->File andCode Templates->Python Script
pycharm 使用pyhon脚本语言 自动在新建文件时创建文件模板
拷贝下列内容到右侧编辑框
#!/usr/bin/env python
#-*- coding:utf-8 _*-
"""
@author:shz
@license: Apache Licence
@file: ${NAME}.py
@time: ${YEAR}/${MONTH}/${DAY}
@contact: sunhouzan@163.com
@site: ${SITE}
@software: ${PRODUCT_NAME}
# code is far away from bugs with the god animal protecting
I love animals. They taste delicious.
┏┓ ┏┓
┏┛┻━━━┛┻┓
┃ ☃ ┃
┃ ┳┛ ┗┳ ┃
┃ ┻ ┃
┗━┓ ┏━┛
┃ ┗━━━┓
┃ 神兽保佑 ┣┓
┃ 永无BUG! ┏┛
┗┓┓┏━┳┓┏┛
┃┫┫ ┃┫┫
┗┻┛ ┗┻┛
"""
新建一个python文件即可看到效果