This commit is contained in:
2024-01-23 14:36:21 +08:00
parent d37c124c5a
commit 946ec691af
16 changed files with 198 additions and 45 deletions

View File

@@ -22,6 +22,8 @@ function findError(line: string, language = "python") {
"NameError: name '(.*?)' is not defined": (name: string) =>
`命名错误,${name} 不知道是什么东西`,
"IndentationError: expected an indented block": "缩进错误:这一行需要缩进",
'TypeError: can only concatenate str \\(not "(.*?)"\\) to str':
"文字和数字不能相加",
}
const c: any = {}
const regex = { c, python }[language]