pycharm
header 设置 File->Settings->Editor->File and Code Templates->Python Script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : ${DATE} ${TIME}
# @Author :
# @Project : ${PROJECT_NAME}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}
DocStrings设置:
Tools -> Python Integraded Tools -> DocStrings
显示空格和tab: