06 2018 档案

摘要:from selenium import webdriver def start_chrome(): driver = webdriver.Chrome(executable_path = './chromedriver') driver.start_client() return driver def find_strangers(): btn_sel =... 阅读全文
posted @ 2018-06-29 13:30 Erick-LONG 阅读(165) 评论(0) 推荐(0) 编辑
摘要: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 阅读(110) 评论(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 阅读(174) 评论(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 阅读(240) 评论(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 阅读(167) 评论(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 阅读(185) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示