找到左上角的File,选择Settings
再找到Editor,选择File and Code Templates,选中Python Script,填入想要添加的内容,点击ok完成设置
# -*- coding = utf-8 -*- # @time:${DATE} ${TIME} # Author:cyx # @File:${NAME}.py # @Software:${PRODUCT_NAME}
完成设置后,新建一个python程序进行检验