import json repair_times = { "进入主城和海图测试": None, "进入白刃战测试": None } with open("test_results.json", "r", encoding="utf-8") as f: test_data = json.load(f) for item in test_data: test_name = item["name"] if test_name in repair_times and repair_times[test_name] is None: if item["data"] is True: repair_times[test_name] = item["time"] print("各测试首次修复时间:") for test, time in repair_times.items(): print(f"{test}:{time}(时间戳)")