|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 akai735 于 2022-1-14 20:21 编辑
import itchat
itchat.auto_login()
itchat.send_msg("hello",'filehelper')
,>>>>>>>
Getting uuid of QR code.
Downloading QR code.
Please scan the QR code to log in.
Please press confirm on your phone.
Loading the contact, this may take a little while.
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\微信.py", line 2, in <module>
itchat.auto_login()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\itchat\components\register.py", line 34, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\itchat\components\login.py", line 66, in login
self.show_mobile_login()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38-32\lib\site-packages\itchat\components\login.py", line 212, in show_mobile_login
self.loginInfo['url'], self.loginInfo['pass_ticket'])
KeyError: 'pass_ticket'
怎么回事 |
|