1 20 50 150 500
欢迎来到瑞博软件站,找素材,搜软件,就上瑞博软件站!
当前位置 >首页 >软件下载 >电脑软件 >系统软件 >卸载软件

Windows微信清理工具 v3.9.6 Python版

软件信息
  • 分类:卸载软件
  • 大小:6.4M
  • 语言: 中文
  • 环境: WinXP, Win7
  • 更新:2024-07-13
  • 评级:
  • 系统: Windows Linux Mac Ubuntu
  • 软件类别: 国产软件 / 免费软件 / 卸载清理
  • 插件情况:

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

微信清理工具说明

本工具采用Python编写,先读取“%userprofile%AppDataRoamingTencentWeChatAll Usersconfig3ebffe94.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 + 'DocumentsWeChat 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 + 'FileStorageImage'

        delete(pictures)

        videos = location + "\" + wxid + 'FileStorageVideo'

        delete(videos)

        break

    elif choice == '3':

        documents = location + "\" + wxid + 'FileStorageFile'

        delete(documents)

        break

    elif choice == '4':

        delall = location + "\" + wxid

        delete(delall)

        break

    else:

        print("输入错误,请重新输入。")

下载地址

热门软件

Top