赞
踩
Pycham —> Preferences —> 编辑器 —> 文件和代码模版 —> 文件 —> Python Script —> 填写头部
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : shanwen.ren
# @Notice : Please use pre-commit to format before submitting
如下图所示:
创建文件时, 如下图所示, 自动生成头部
repos:
- repo: https://gitee.com/irving512/flake8
rev: 3.8.3
hooks:
- id: flake8
- repo: https://gitee.com/irving512/mirrors-yapf
rev: v0.30.0
hooks:
- id: yapf
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。