1.选择File -> Settings
2.选择 File and Code Templates -> Files -> Python Script编辑代码的样式#!/usr/bin/env python# encoding: utf-8'''@author: caopeng@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.@contact: deamoncao100@gmail.com@software: garner@file: ${NAME}.py@time: ${DATE} ${TIME}@desc:'''
3.新建一个python,文件如下所示