File -> Settings -> Editor -> File and Code Templates: New Python File后,新建的python文件就会自动加上之前设置的注释信息。 成果展示: