代碼如下
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)
代碼如下
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)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。