# -*- coding: utf-8 -*- """把复选框单元格插进设备行。 为什么单独写这一步: 第一次跑 add_batch_delete.py 时 rows 锚点没匹配上, 但后端接口加成功了;第二次跑就因为"delete_many 已存在"整个跳过, 于是行里的复选框一直没加上(表头有、行里没有)。 """ from __future__ import annotations import ast import sys from pathlib import Path RELAY = Path(r"C:\Users\shu\Desktop\deepseekagent\LanRemote\relay" r"\relay.py") def main() -> int: lines = RELAY.read_text(encoding="utf-8").splitlines(keepends=True) if any("class=pickcell" in line and "