在pycharm上依次选择打开File->settings->Editor->File andCode Templates->Python Script
复制以下模板内容:
#!/usr/bin/env python # encoding: utf-8 #set( $SITE = "http://blog.csdn.net/hqzxsc2006" ) """ @version: v1.0 @author: Lieb @license: Apache Licence @contact: 2750416737@QQ.com @site: ${SITE} @software: ${PRODUCT_NAME} @file: ${NAME}.py @time: ${DATE} ${TIME} """
新闻热点
疑难解答