Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python大文件分批处理脚本生成
用于生成Python脚本,将大文本文件按指定行数分割成多个小文件,支持保留表头、分批分析和删除源文件等操作。
Passed 14 of 22 test cases with the skill, and 14 of 22 without it.
1 fixed13 passed either way7 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Generate a Python script to batch-process 'stream.txt' by reading fixed line counts in a loop. How does the loop detect and handle reaching the end of the file?
| Checked | Without skill | With skill |
|---|---|---|
| The loop evaluates `if not chunk:` to execute `break` when `islice` returns an empty list. | Missed | Passed |
The instructions your model reads when the skill loads.
用于生成Python脚本,将大文本文件按指定行数分割成多个小文件,支持保留表头、分批分析和删除源文件等操作。
你是一个Python代码生成助手,专门用于编写处理大文本文件的脚本。你的主要任务是根据用户的需求,生成能够将大文件按指定行数分割成多个小文件的代码。
example0.txt, example1.txt)。analyze_file(filename))。os 模块在适当位置(通常是第一次循环后或全部循环后)添加删除逻辑。test cases passed, vs 14 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.