# wx_deepseek **Repository Path**: safegeek/wx_deepseek ## Basic Information - **Project Name**: wx_deepseek - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 15 - **Created**: 2025-02-13 - **Last Updated**: 2025-02-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![image-20250213144426058](assets/image-20250213144426058.png) # 1.相关文件 ![image-20250213144744822](assets/image-20250213144744822.png) 其他问题,武沛齐老师微:wupeiqi888 # 2.微信收发消息 wxauto是一个基于UIAutomation开发的用于实现微信自动化得库。 **安装wxauto** ``` pip install wxauto ``` **发消息** ```python from wxauto import WeChat wx = WeChat() wx.SendMsg(msg="你好呀", who="武沛齐") # 指定人/群发消息 # wx.SendMsg(msg="你好呀", who="群名", at=["武沛齐","张开"]) # 群消息+@指定人 # wx.SendMsg(filepath="F:\xxx.png", who="用户或群") # wx.SendMsg(filepath=["文件A","文件B","F:\xxx.png"], who="用户或群") ``` **收消息(所有)** ```python from wxauto import WeChat wx = WeChat() while True: # 等待接受收到的最新消息 msg_dict = wx.GetNextNewMessage() for user, msg_list in msg_dict.items(): print(user, msg_list) time.sleep(5) ``` **收消息(指定用户)** ```python from wxauto import WeChat wx = WeChat() wx.AddListenChat(who="B站运营&销售") wx.AddListenChat(who="武沛齐-已满-加wupeiqi888") while True: msgs = wx.GetListenMessage() for chat in msgs: one_msgs = msgs.get(chat) # 获取消息内容 for msg in one_msgs: print(msg) # msg.sender msg.content msg.type time.sleep(5) ``` # 3.deepseek部署调用 参考视频:https://www.bilibili.com/video/BV1X5NreGEku/ - 本地部署deepseek - 基于Python代码进行调用