itchat 动态注册
生活随笔
收集整理的這篇文章主要介紹了
itchat 动态注册
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
動態注冊時可以選擇將itchat.run()放入另一線程或使用configured_reply()方法處理消息。
兩種方法分別是:
# 使用另一線程,但注意不要讓程序運行終止 import threadthread.start_new_thread(itchat.run, ())# 使用configured_reply方法 while 1: itchat.configured_reply() # some other functions time.sleep(1)轉載于:https://www.cnblogs.com/ouyangping/p/8460941.html
總結
以上是生活随笔為你收集整理的itchat 动态注册的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Lightoj 1123 - Trail
- 下一篇: 第 21 章 —— 单例模式