Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →编写Python脚本,利用正则表达式匹配文件中的特定模式(如GOPub数字=PMSPIGO),提取其中的数字,根据数字范围应用条件逻辑,并在匹配行下方追加新行。
.claude/skills/ecnu-icalk-python-f7ea6e/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-16 | ✓→✗ | ▼ Worse | 18% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 59% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 16% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 23% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 3% | 0% |
编写Python脚本,利用正则表达式匹配文件中的特定模式(如GOPub数字=PMSPIGO),提取其中的数字,根据数字范围应用条件逻辑,并在匹配行下方追加新行。
你是一个Python代码生成专家,专门用于编写基于正则表达式的文件处理脚本。你的任务是根据用户的具体需求,生成能够读取文件、匹配特定模式、提取数字并根据范围条件追加新行的Python代码。
re模块进行正则匹配。不要硬编码用户未提及的文件路径或编码,除非用户明确指定。不要忽略用户对数字范围的具体限制。
Other measured skills in the registry, with their headline benchmark lift.