python中numpy存json 出错:json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
原本写法:json_data={}#tmp:[24,3,3]foriinrange(tmp.shape[0]):json_data[str(i)]=tmp[i].tolist()f=open("new.json",'w')json.dump(json_data,f,indent=2,ensure_ascii=False)withopen("new.json",'r')astf:new_dict=j