Windows微信清理工具,微信清理工具吾爱版本,论坛用户通过Python语言编写的一个自动清理工具,可以一键清理PC设备上的微信缓存文件,清理电脑内存空间,经常使用PC版微信的朋友们可以用这款软件来清理积攒的垃圾数据,让你的电脑变得更加清洁。

微信清理工具说明
本工具采用Python编写,先读取“%userprofile%\AppData\Roaming\Tencent\WeChat\All Users\config\3ebffe94.ini”,确定WeChat Files文件夹的位置,进行扫描,列出所有登陆过的微信号,让用户选择清理的对象,再列出菜单,通过if语句让用户来决定删除哪些数据,最后进行删除操作。
程序要求输入微信号只是为了定位文件夹位置,没有对网络进行连接的任何操作
微信清理工具功能
【1.清理聊天记录】
【2.清理图片和视频】
【3..清理接收到的文件】
【4.清理全部数据】
源码一览
import os
def delete(files):
os.system('del /f /s /q "%s\\*.*"' % files)
print("清理成功!")
users = os.path.expandvars('$HOMEPATH')
f = open(r'C:' + users + '\\AppData\\Roaming\\Tencent\\WeChat\\All Users\\config\\3ebffe94.ini')
if f == 'MyDocument:':
location = 'C:' + users + '\Documents\WeChat Files'
else:
location = f.read() + "\WeChat Files"
list = os.listdir(location)
list.remove('All Users')
list.remove('Applet')
print("""
""")
print(list)
print("""
""")
while True:
temp = input("选择你要清理的微信号:")
try:
if 0<int(temp)<=len(list):
temp1 = int(temp) - 1
wxid = list[temp1]
break
else:
print("输入错误,请重新输入。")
except:
print("输入错误,请重新输入。")
print("""
-----------------------------Windows微信清理工具-------------------------------------
------------------------------【1.清理聊天记录】---------------------------------
-----------------------------【2.清理图片和视频】-----------------------------------
-----------------------------【3.清理接收到的文件】------------------------------
------------------------------【4.清理全部数据】-------------------------------
""")
while True:
choice = input("请输入要执行的操作所对应的代码:")
if choice == '1':
dialog = location + "\\" + wxid + '\Msg'
delete(dialog)
break
elif choice == '2':
pictures = location + "\\" + wxid + '\FileStorage\Image'
delete(pictures)
videos = location + "\\" + wxid + '\FileStorage\Video'
delete(videos)
break
elif choice == '3':
documents = location + "\\" + wxid + '\FileStorage\File'
delete(documents)
break
elif choice == '4':
delall = location + "\\" + wxid
delete(delall)
break
else:
print("输入错误,请重新输入。")






















大小: 73.7M
大小: 1.5M
极客软件卸载(GeekUninstaller)v1.4.7.142 绿色版
彻底删除工具V1.20绿色版
AntiDupl.NETV2.2.4.528 官方版
Purge清除系统中所有的垃圾文件V2.0.0.488 Beta1绿色版
钉子清除记录5.2绿色版
电脑记录清洁工V1.20绿色版
Windows清洁精灵Cleanbi1.0.0.4绿色版
CleanCenter垃圾清理1.38.1.1绿色版
SuperCleaner 清理Windows 系统磁盘垃圾文件V2.96绿色便携版
金山清理专家V2.75 Build 20100118官方安装版
Okoker Disk Cleaner 删除硬盘中垃圾和临时文件V4.4绿色版
嘉震磁盘清理V1.50.623绿色版
Acelogix System TuneUp清除痕迹2.2.0.427绿色版
新星系统清理助手V1.70绿色版
Acelogix Ace Optimizer Utilities 清理系统垃圾工具4.2.0绿色版
RogueRemover PRO查杀间谍软件及硬盘清理垃圾V1.20绿色版
DeletistV1.0.3绿色英文免费版