标签:python-twitter

  • 有更快的方法吗? (python Twitter位置) - python

    时间:2020-6-20

    我正在尝试返回一个字典,该字典按其最近的州中心汇总推文。我正在遍历所有推文,对于每个推文,我正在检查所有状态以查看哪个状态最接近。 有什么更好的方法可以做到这一点? def group_tweets_by_state(tweets): """ The keys of the returned dictionary are state […]