json.decoder.JSONDecodeError: Extra data: line 1 column 3 (char 2)

錯誤緣由是json文件太大,改成單行讀取:python with open("COCO_train.json", "r+") as f: data = json.load(f) 改成: with open("COCO_train.json", "r+") as f: data = f.readline()
相關文章
相關標籤/搜索