本帖最后由 yunlongzhuhuo 于 2022-1-19 08:12 编辑
[Python] 纯文本查看 复制代码 import os
users = os.path.expandvars('$HOMEPATH')
f = open(r'C:' + users + '\\AppData\\Roaming\\Tencent\\WeChat\\All Users\\config\\3ebffe94.ini')
location = f.read() + "\WeChat Files"
list = os.listdir(location)
list.remove('All Users')
list.remove('Applet')
print("""
""")
print(list)
print("""
""")
temp = input("选择你要清理的微信号:")
temp1 = int(temp) - 1
wxid = list[temp1]
print("""
-----------------------------Windows微信清理工具-------------------------------------
------------------------------【1.清理聊天记录】---------------------------------
-----------------------------【2.清理图片和视频】-----------------------------------
-----------------------------【3.清理接收到的文件】------------------------------
------------------------------【4.清理全部数据】-------------------------------
""")
choice = input("请输入要执行的操作所对应的代码:")
if choice == 1:
dialog = location + wxid + '\Msg'
print(dialog)
if后的那段代码好像没有被执行啊 |