西西軟件園多重安全檢測(cè)下載網(wǎng)站、值得信賴的軟件下載站!
西西首頁(yè) 電腦軟件 安卓軟件 電腦游戲 安卓游戲 排行榜 專題合集

Windows微信清理工具

v3.9.6 Python版
  • Windows微信清理工具v3.9.6 Python版
  • 軟件大小:6.4M
  • 更新時(shí)間:2022-01-20 13:55
  • 軟件語(yǔ)言:中文
  • 軟件廠商:
  • 軟件類別:國(guó)產(chǎn)軟件 / 免費(fèi)軟件 / 卸載清理
  • 軟件等級(jí):3級(jí)
  • 應(yīng)用平臺(tái):WinXP, Win7
  • 官方網(wǎng)站:暫無(wú)
  • 應(yīng)用備案:
好評(píng):50%
壞評(píng):50%

本類精品

軟件介紹

Windows微信清理工具,微信清理工具吾愛(ài)版本,論壇用戶通過(guò)Python語(yǔ)言編寫的一個(gè)自動(dòng)清理工具,可以一鍵清理PC設(shè)備上的微信緩存文件,清理電腦內(nèi)存空間,經(jīng)常使用PC版微信的朋友們可以用這款軟件來(lái)清理積攢的垃圾數(shù)據(jù),讓你的電腦變得更加清潔。

Windows微信清理工具

微信清理工具說(shuō)明

本工具采用Python編寫,先讀取“%userprofile%\AppData\Roaming\Tencent\WeChat\All Users\config\3ebffe94.ini”,確定WeChat Files文件夾的位置,進(jìn)行掃描,列出所有登陸過(guò)的微信號(hào),讓用戶選擇清理的對(duì)象,再列出菜單,通過(guò)if語(yǔ)句讓用戶來(lái)決定刪除哪些數(shù)據(jù),最后進(jìn)行刪除操作。

程序要求輸入微信號(hào)只是為了定位文件夾位置,沒(méi)有對(duì)網(wǎng)絡(luò)進(jìn)行連接的任何操作

微信清理工具功能

【1.清理聊天記錄】

【2.清理圖片和視頻】

【3..清理接收到的文件】

【4.清理全部數(shù)據(jù)】

源碼一覽

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("選擇你要清理的微信號(hào):")

    try:

        if 0<int(temp)<=len(list):

            temp1 = int(temp) - 1

            wxid = list[temp1]

            break

        else:

            print("輸入錯(cuò)誤,請(qǐng)重新輸入。")

    except:

        print("輸入錯(cuò)誤,請(qǐng)重新輸入。")

print("""

         -----------------------------Windows微信清理工具-------------------------------------

         ------------------------------【1.清理聊天記錄】---------------------------------

         -----------------------------【2.清理圖片和視頻】-----------------------------------

         -----------------------------【3.清理接收到的文件】------------------------------

         ------------------------------【4.清理全部數(shù)據(jù)】-------------------------------

         """)

while True:

    choice = input("請(qǐng)輸入要執(zhí)行的操作所對(duì)應(yīng)的代碼:")

    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("輸入錯(cuò)誤,請(qǐng)重新輸入。")

其他版本下載

發(fā)表評(píng)論

昵稱:
表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
查看所有(0)條評(píng)論 > 字?jǐn)?shù): 0/500

TOP
軟件下載