摘要:
from pynput.keyboard import Listener,Controller,Key import time import threading class ComboListener: def __init__(self): self.cur_keys = [] self.keymap = { 'bbb':'w... 阅读全文
摘要:
#ReadManger(c) -> (tool & context) from time import ctime import os import threading import webbrowser class ReadManager(object): def __init__(self, config): self.read_time= config[... 阅读全文
摘要:
sconfig.py 阅读全文
摘要:
from wxpy import * import time bot = Bot() def listen(pwd): time.sleep(3) return [msg for msg in bot.messages if msg.text == pwd] def add_group(users,group): try: group.add_me... 阅读全文
摘要:
import csv from wxpy import * import time def read_info(): f = open('./sample.csv','r') reader = csv.DictReader(f) return [info for i in reader] def make_msg(raw_info): t = '{n}-同学请... 阅读全文
摘要:
# san -- unzip --delte import os import shutil def scan_file(): files = os.listdir() for f in files: if f.endswith('.zip') return f def unzip_it(f): folder_name = f... 阅读全文
摘要:
import os import shutil path='./' files = os.listdir(path) for f in files: folder_name = './' + f.split('.')[-1] if not os.path.exist(path): os.makedirs(folder_name) shutil.... 阅读全文
摘要:
# -*- encoding: utf-8 -*- import os path = '/Users/erick/Downloads/【完结】实用主义学Python脚本' files = os.listdir(path) #print(files) for f in files: if 'fish' in f and f.endswith('.png'): prin... 阅读全文
摘要:
import requests import json import pandas as pd import time import re headers = { 'User-Agent': 'XXXX', 'Cookie': 'XXX'} def get_ad(page): url = 'https://m.weibo.cn/api/container/getIn... 阅读全文
摘要:
class MaxHeap(object): # def __init__(self): # self.data = [] # 创建堆 # self.count = len(self.data) # 元素数量 def __init__(self, arr): self.data = copy.copy(arr) sel... 阅读全文