Commit a215e5fc authored by liyang's avatar liyang

feat:task.json 新增total字段

parent 18bd560f
......@@ -26,7 +26,7 @@ for root, dirs, files in os.walk(main_directory):
# 统计JSON数组的长度,并累加到总长度
array_length = len(json_data)
total_length += array_length
print(f"{dis}-条数:{total_length}")
print(f"{dis}-条数:{array_length}")
# print(f"Found {array_length} entries in {json_file_path}")
except json.JSONDecodeError:
# print(f"Error parsing JSON in {json_file_path}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment