是Python的新手,需要解析日期和'4。从以下JSON关闭'。非常感谢指针如何以pythonic的方式做到这一点。
{'2017-01-24': {'1. open': '207.8600',
'2. high': '209.4000',
'3. low': '207.7479',
'4. close': '208.9700',
'5. adjusted close': '208.0046',
'6. volume': '1940125',
'7. dividend amount': '0.00',
'8. split coefficient': '1.0000'},...
答案 0 :(得分:1)
您可以像这样解析JSON:
import json
from pprint import pprint
with open('path_of_file.json') as data_file:
data = json.load(data_file)
pprint(data)