从网页上返回的 json 格式的数据如下:
for i in range(len(r['rows'])):
print (r['rows'][i]['project']['name'],r['rows'][i]['issueType'])
比方说打印的结果:
a story
b idea
b story
b story
a story
a idea
b story
a story
a story
python 里怎么统计 a 的 story 次数,a 的 idea 次数,b 的 story 次数,b 的 idea 次数? a b 是 project name, 一开始不知道 project name 是多少。
for i in range(len(r['rows'])):
print (r['rows'][i]['project']['name'],r['rows'][i]['issueType'])
比方说打印的结果:
a story
b idea
b story
b story
a story
a idea
b story
a story
a story
python 里怎么统计 a 的 story 次数,a 的 idea 次数,b 的 story 次数,b 的 idea 次数? a b 是 project name, 一开始不知道 project name 是多少。