File size: 272 Bytes
3d27cfe | 1 2 3 4 5 6 7 8 9 | import json
FILE_PATH = "/root/test/weitiao/data_process_bq/data3/result/M_sharegpt_data3_all_by_batch_order_perfect_neutral.json"
with open(FILE_PATH, 'r', encoding='utf-8') as f:
data = json.load(f)
count = len(data)
print(f"条目总数(长度)是: {count}")
|