CommentHelper不可迭代

2024-10-01 19:25:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试学习如何在Python中创建Reddit机器人,但是得到以下错误消息。。。在

C:\Users\Warbz\Desktop>python redditbot.py
Logging in...
Grabbing subreddit...
Grabbing comments...
Traceback (most recent call last):
  File "redditbot.py", line 30, in <module>
    run_bot()
  File "redditbot.py", line 19, in run_bot
    for comment in subredditComments:
TypeError: 'CommentHelper' object is not iterable

我的代码是。。。在

^{pr2}$

我试过查看prawapi,但我不确定到底出了什么问题,有什么帮助吗?在


Tags: runinpy消息bot错误line机器人

热门问题