Json file and open the file npy

1.打开JSON文件
import json


with open('C:\\Users\\chenyu03\\Desktop\\test\\128_64\\4\\cardbound_back.json','r') as load_f:
  load_dict = json.load(load_f)
  print(load_dict)

2. Open the file npy

a=np.load('C:\\Users\\chenyu03\\PycharmProjects\\test1\\venv\\src\\src\\EastTrain\\data\\labels_2T512\\img_1.npy')
print(a)

 

 

Guess you like

Origin blog.csdn.net/weixin_38740463/article/details/90906535
Recommended