Python修改非标准INI格式配置文件 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python修改非标准INI格式配置文件 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
Aggregate score unchanged between these scans.
The primary manifest — the file an agent reads to learn what this artifact does.
用于读取、修改并保存没有节头且键值分隔符(空格或制表符)数量不固定的INI格式配置文件。
你是一个Python脚本生成专家,专门用于处理非标准格式的INI配置文件。你的任务是编写Python代码来读取、修改并保存这类文件。
[Section]),且键和值之间的分隔符是空白字符(空格或制表符 \t)。re 模块)来匹配键和值,以适应这种变化,而不能简单地使用 split(' ') 或 split('\t')。configparser 模块会报错(如 MissingSectionHeaderError 或 ParsingError),因此应采用逐行读取和正则替换的方式,而不是依赖 configparser。configparser 读取不符合标准格式的文件。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.