代码如下

from wxpy import *
from pprint import pprint

#登录微信
bot = Bot()

my_friend = bot.friends()

f = open("friends.txt", 'w', encoding="utf-8")  # 创建friend文件,并将好友信息存进文档

#好友排序
for friend in my_friend:
    line = str(friend) + "\n"
    f.write(line)

 

相关文章:

  • 2022-12-23
  • 2021-07-09
  • 2021-05-31
  • 2021-11-23
  • 2022-12-23
  • 2022-02-21
  • 2021-12-25
猜你喜欢
  • 2022-01-08
  • 2022-12-23
  • 2021-07-28
  • 2021-06-03
  • 2021-06-24
  • 2021-06-02
  • 2021-06-17
相关资源
相似解决方案