错误内容
Error parsing Velocity template: Encountered " " at [line 5, column 1] Was expecting one of: "\u001c" ... "\u001c" ... "||" ... "|" ... "(" ... ")" ...
问题原因
pycharm配置的 创建文件的Velocity 模板错误,导致创建python文件不成功。
位置:file>setting>Editor>File and Code Templates>Python Script
解决办法
1、删除模板中的配置文件。
2、模板文件中的错误配置修改,大概率是配置的内容 缺少空格导致。
#号和@之间需要添加空格字符,没有空格时模板解释不了。