data_process_bq / script /check_number.py
bingqin111's picture
Upload folder using huggingface_hub
3d27cfe verified
Raw
History Blame Contribute Delete
272 Bytes
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}")