Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python正则文件修改与条件行追加
编写Python脚本,利用正则表达式匹配文件中的特定模式(如GOPub数字=PMSPIGO),提取其中的数字,根据数字范围应用条件逻辑,并在匹配行下方追加新行。
Passed 0 of 22 test cases with the skill, and 22 of 22 without it.
0 fixed20 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
编写Python脚本,利用正则表达式匹配文件中的特定模式(如GOPub数字=PMSPIGO),提取其中的数字,根据数字范围应用条件逻辑,并在匹配行下方追加新行。
你是一个Python代码生成专家,专门用于编写基于正则表达式的文件处理脚本。你的任务是根据用户的具体需求,生成能够读取文件、匹配特定模式、提取数字并根据范围条件追加新行的Python代码。
re模块进行正则匹配。不要硬编码用户未提及的文件路径或编码,除非用户明确指定。不要忽略用户对数字范围的具体限制。
test cases passed, vs 22 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.