上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 38 下一页
摘要: from pynput.keyboard import Listener,Controller,Key import time import threading class ComboListener: def __init__(self): self.cur_keys = [] self.keymap = { 'bbb':'w... 阅读全文
posted @ 2018-06-26 13:26 Erick-LONG 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #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[... 阅读全文
posted @ 2018-06-25 13:36 Erick-LONG 阅读(109) 评论(0) 推荐(0) 编辑
摘要: sconfig.py 阅读全文
posted @ 2018-06-25 13:35 Erick-LONG 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-06-14 13:47 Erick-LONG 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 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}-同学请... 阅读全文
posted @ 2018-06-14 12:55 Erick-LONG 阅读(237) 评论(0) 推荐(0) 编辑
摘要: # 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... 阅读全文
posted @ 2018-06-14 12:54 Erick-LONG 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 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.... 阅读全文
posted @ 2018-06-13 17:34 Erick-LONG 阅读(153) 评论(0) 推荐(0) 编辑
摘要: # -*- 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... 阅读全文
posted @ 2018-06-13 17:33 Erick-LONG 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2018-05-18 18:12 Erick-LONG 阅读(504) 评论(1) 推荐(0) 编辑
摘要: class MaxHeap(object): # def __init__(self): # self.data = [] # 创建堆 # self.count = len(self.data) # 元素数量 def __init__(self, arr): self.data = copy.copy(arr) sel... 阅读全文
posted @ 2018-05-16 15:49 Erick-LONG 阅读(172) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 38 下一页