[英]Iterating over a json object, then adding the results to an array
嘗試將標題移出循環
titles = []
for e in loadedJson['posts']['entities']:
print(e)
titles.append(e)
print(titles)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.