Pycharm在创建py文件时,如何自动添加文件头注释(类似于钩
2017-11-27 本文已影响2人
python_spider
File->settings->Editor->File and Code Templates->Python Script
添加以下代码:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : python_spider
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}