Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Day21-30/22.对象的序列化和反序列化.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ import requests
resp = requests.get('http://api.tianapi.com/guonei/?key=APIKey&num=10')
if resp.status_code == 200:
data_model = resp.json()
for news in data_model['newslist']:
for news in data_model['result']['newslist']:
print(news['title'])
print(news['url'])
print('-' * 60)
Expand Down