【问题标题】:How to extract the values that are greater than a certain threshold from JSON using Python如何使用Python从JSON中提取大于某个阈值的值
【发布时间】:2022-06-16 23:57:38
【问题描述】:

我使用 Python 的 requests 包从网站中提取的 JSON 文件,如下所示

{'data': "'key = ihihih', 'value = 30', 'key = hjhh', 'value = 10', 'key = yuyu', 'value = 22', ..., '键 = uitgiugu', '值 = 47'"}

我想数一数。大于 20 的键值对。我该怎么做?

【问题讨论】:

  • 您忘记发布解决此问题的尝试。

标签: python json dictionary python-requests


猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-02-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-29
  • 2017-07-25
相关资源
最近更新 更多