python 版本3.6.8
IDE: PyCharm 2020.3
# 引入json
import json
# 构建 jsonArray
info = []
mJsonArry = json.loads(json.dumps(info))
# 构建 jsonItem 和 添加item 到 Array
for num in range(10,20):
jsonItem = {'youKey1': youValue1, 'youKey2': youValue2}
mJsonArry.append(jsonItem)
# 打印结果
print(mJsonArry)



