假期苦短,我用Python!这有个自动回复拜年信息的小程序( 七 )


)        if match:            randomIdx = random.randint(0 len(REPLY[key
)-1)            itchat.send(REPLY[key
[randomIdx
msg['FromUserName'
)            defFlag = False            break    if len(REPLY['default'
) > 0 and defFlag:        itchat.send(REPLY['default'
msg['FromUserName'
)'''@itchat.msg_register([PICTURE RECORDING EO SHARING
)def other_reply(msg):    itchat.send((REPLY['default'
msg['FromUserName'
))'''itchat.auto_login(enableCmdR=True hotReload=True)itchat.run()

运行 :cmd 中python newYear.py屏幕出现二维码 扫码登陆 , 实现自动回复

扫码登录

推荐阅读