import json
f = open('***.json','r')
data1 = f.read()
data2 = json.loads(data1)
# key存到list
list = []
for k,v in data2.items():
list.append(k)
# 取list前20个
list_20 = list[:20]
import json
f = open('***.json','r')
data1 = f.read()
data2 = json.loads(data1)
# key存到list
list = []
for k,v in data2.items():
list.append(k)
# 取list前20个
list_20 = list[:20]