清除电脑垃圾AppData下TEMP+点击360一键清理在这里插入代码片
用户在使用电脑过程中会发现AppData文件夹占用了很大的空间,AppData\Local\Temp、 缓存或者临时文件存放的位置。pip install shutilwhich
安装shutil.`在这里插入代码片
encoding = 'utf-8'
from random import randrange, sample
import stat
import win32file
import shutil
from os import listdir
# 引入
import os, glob
import datetime
import random
import pyautogui
import os
import subprocess
import time, threading, copy
time.sleep(3)
today = datetime.datetime.now().weekday() + 1
print(today)
try:
os.system('taskkill /f /im Nox.exe')
for i in range(0):
os.system('taskkill /f /im NoxVMHandle.exe')
os.system('taskkill /f /im firefox.exe')
os.system('taskkill /f /im Wormhole.exe')
os.system('taskkill /f /im chrome.exe')
os.system('taskkill /f /im NoxVMSVC.exe')
os.system('taskkill /f /im Helper_Haozip.exe')
os.system('taskkill /f /im HaozipSvc.exe')
os.system('taskkill /f /im HiSuite.exe')
os.system('taskkill /f /im QQ.exe')
os.system('taskkill /f /im eyefoo.exe')
os.system('taskkill /f /im WeChat.exe') #wps云盘
os.system('taskkill /f /im cmd.exe')
#time.sleep(1)
except Exception as e:
print(e)
def dianji(x1, y1, x2, y2):
xrand = random.randint(0, 1)
try:
x3 = x1 + (x2 - x1) * xrand
y3 = y1 + (y2 - y1) * xrand
pyautogui.moveTo(x3, y3)
pyautogui.click()
except Exception as e:
print('坐标不好点击')
for i in range(1