【问题标题】:tweepy.cursor is not callablepylint(not-callable)tweepy.cursor 不可调用 pylint(不可调用)
【发布时间】:2020-10-11 22:45:48
【问题描述】:

我正在尝试使用 ''' 对于 tweepy.cursor(api.followers).items() 中的追随者: 打印(follower.name) ''' 但我收到这种类型的错误 *tweepy.cursor is not callablepylint(not-callable) av 尝试使用 from '''tweepy import tweepy''' 但它也收到更多错误>无法从类 tweepy 导入模块

【问题讨论】:

    标签: python tweepy


    【解决方案1】:

    尝试使用光标(而不是光标):

    import tweepy
    
    api = tweepy.API(auth)
    for follower in tweepy.Cursor(api.followers).items():
      print(follower.name)
    

    【讨论】:

      猜你喜欢
      • 2021-08-21
      • 1970-01-01
      • 1970-01-01
      • 2021-11-09
      • 2015-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多