PyCharm自动生成作者等信息

教程一共四个步骤

  1. 打开PyCharm,File → Settings…
    PyCharm自动生成作者等信息
  2. Editor → File and Code Temlates → Python ScriptPyCharm自动生成作者等信息
  3. 在黑框内输入,编辑格式为: ${<variable_name>},比如 ${NAME}.py。注意:“{ }“大括号的字母为大写。PyCharm自动生成作者等信息
    然后勾选Enable Live Temlates,最后点击OK。PyCharm自动生成作者等信息
  4. 让我们新建一个文件来测试一下。
    PyCharm自动生成作者等信息
    成功,教程结束。