Download script/check_number.py from bingqin111/data_process_bq: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/datasets/bingqin111/data_process_bq/resolve/main/script/check_number.py
- Command line
-
hf download hf://datasets/bingqin111/data_process_bq/script/check_number.py
-
curl -L -o check_number.py https://huggingface.co/datasets/bingqin111/data_process_bq/resolve/main/script/check_number.py
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}") | |