配置
- TempFilePath:生成的答题模版路径
- CustomTemplate:必须勾选,否者自定义模版不会生效
- CodeFileName:建议按下面的写,自动leftPadZeros(str,n)自动将str用0从左边填充到
n位
P$!velocityTool.leftPadZeros(${question.frontendQuestionId},3)${question.title}
- CodeTemplate:建议按照下面的写,package可能需要改动
package editor.cn;
${question.content}
public class P$!velocityTool.leftPadZeros(${question.frontendQuestionId},3)${question.title}${question.title}{
public static void main(String[] args) {
Solution solution = new P$!velocityTool.leftPadZeros(${question.frontendQuestionId},3)${question.title}${question.title}().new Solution();
}
${question.code}
}
效果
|