Commit 18bd560f authored by liyang's avatar liyang

feat:task.json 新增total字段

parent af6aac0d
This diff is collapsed.
...@@ -26,7 +26,7 @@ for root, dirs, files in os.walk(main_directory): ...@@ -26,7 +26,7 @@ for root, dirs, files in os.walk(main_directory):
# 统计JSON数组的长度,并累加到总长度 # 统计JSON数组的长度,并累加到总长度
array_length = len(json_data) array_length = len(json_data)
total_length += array_length total_length += array_length
print(f"{dis}-条数:{total_length}")
# print(f"Found {array_length} entries in {json_file_path}") # print(f"Found {array_length} entries in {json_file_path}")
except json.JSONDecodeError: except json.JSONDecodeError:
# print(f"Error parsing JSON in {json_file_path}") # 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