Open ShihanZhang44419 opened 5 years ago
如图所示 为什么发送消息的代码会报错呢? 我是python小白。 my_friends = bot.search().search('Shi',sex=MALE,) my_friends.send("hi")
my_friends = bot.search().search('Shi',sex=MALE,)
my_friends.send("hi")
Traceback (most recent call last): File "C:/Users/Dell/PycharmProjects/WBot/venv/WBot_test.py", line 12, in my_friends.send("hi") AttributeError: 'Chats' object has no attribute 'send'
my_friends = bot.friends().search('Shi',sex=MALE)[0] my_friends.send("hi")
如图所示 为什么发送消息的代码会报错呢? 我是python小白。
my_friends = bot.search().search('Shi',sex=MALE,)
my_friends.send("hi")
Traceback (most recent call last): File "C:/Users/Dell/PycharmProjects/WBot/venv/WBot_test.py", line 12, in
my_friends.send("hi")
AttributeError: 'Chats' object has no attribute 'send'