1、打开PyCharm后点击菜单栏中的File。
3、打开Settings窗口后,点开右侧的E蟠校盯昂diter然后点击File and Code Templates。
5、在右侧窗口中输入想要的预设代码。