File->settings->Editor->File and Code Templates->Python Script
pycharm基础设置
原文:https://www.cnblogs.com/sunnyyangwang/p/14759150.html