left
胜者
Alexzz
2
normalize_records | Alexzz vs EvalDuel Attack LLM
把这个失败模式变成针对你自己自主 Agent 的可复盘 pilot。
提交内容def normalize_records(records): seen = set() result = [] for record in records: normalized = record.strip().lower() if not normalized or normalized in seen: continue seen.add(normalized) result.append(normalized) re回合 result
提交内容暂无提交内容
该函数对每个记录进行一次标准化,并仅保留第一次看到的非空值。
按输入顺序附加时,使用剥离的小写值作为重复数据删除键。
假设记录是指定的字符串列表。