leetcode-editor
leetcode-editor copied to clipboard
模板 ${question.titleSlug} 与 ${question.code} 中的预期不符
Describe the bug
由于题目标记 ${question.titleSlug} 使用的是 question 的 url 路径,可能无法用于提供预期的 code function name 用于调试。
模板
${question.content}
${question.code}
if __name__ == "__main__":
so = Solution()
so.$!velocityTool.smallCamelCaseName(${question.titleSlug})()
以 12. 整数转罗马数字 为例,生成的结果:
# leetcode submit region begin(Prohibit modification and deletion)
class Solution:
def intToRoman(self, num: int) -> str:
# leetcode submit region end(Prohibit modification and deletion)
if __name__ == "__main__":
so = Solution()
so.integerToRoman()
Software versions(Help -> About)
- Product: IDEA 2021.1
- Runtime version: 11.0.10+9-b1341.41 amd64
- VM: Dynamic Code Evolution 64 -Bit Server VM by JetBrains s.r.o.
- OS: Windows 10
Question(Optional)
- URL: leetcode.cn
- Code Type: Python3
titleSlug是题目标记,并不是代码的方法名
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.