解决:Pycharm中设置py文件默认头部

步骤:打开File—>Settings—>Editor—>Code Style—>File and Code Templates—>Files—>Python Script,填入模板,点击apply

原文地址:https://www.cnblogs.com/syywy/p/12984612.html