擅长:python、mysql、java
<p>您需要遍历dict项</p>
<pre><code>dict_ = {'color': 'blue', 'fruit': 'apple', 'pet': 'dog'}
>>> for item in dict_.items():
... print(item)
...
# output will be like this:
('color', 'blue')
('fruit', 'apple')
('pet', 'dog')
</code></pre>
<p>就你而言:</p>
<pre><code>for i in clean_result['streams'].items():
# do your stuff
</code></pre>
<p>如果您想了解更多关于如何在python中迭代字典的信息,请查看此<a href="https://realpython.com/iterate-through-dictionary-python/" rel="nofollow noreferrer">link</a></p>