pycharm在创建py文件时如何自动注释
打开PyCharm程序,根据菜单栏中按照如下进入设置:
File -> settings -> Editor -> File and Code Templates -> Python Script
然后将以下内容复制到右侧即可
#!/usr/bin/env python
# -- coding: utf-8 --
# @Time : ${DATE} ${TIME}
# @Author : Aries
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}