摘要:
from datetime import datetime from apscheduler.schedulers.blocking import BlockingScheduler def tick(): print(datetime.now()) if __name__ == '__main__': scheduler = BlockingScheduler(... 阅读全文
posted @ 2018-03-04 11:34
Dsp Tian
阅读(383)
评论(0)
推荐(0)
摘要:
import threading import time class myThread (threading.Thread): #继承父类threading.Thread def __init__(self, threadID, name): threading.Thread.__init__(self) self.name = name ... 阅读全文
posted @ 2018-03-04 11:33
Dsp Tian
阅读(355)
评论(0)
推荐(0)
摘要:
import requests import bs4 import urllib.request import urllib import os hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHT 阅读全文
posted @ 2018-03-04 11:31
Dsp Tian
阅读(514)
评论(0)
推荐(0)
摘要:
源地址:http://www.cnblogs.com/thinksasa/archive/2013/08/26/3283695.html 方法:新建一个register.py 文件,把一下代码贴进去,保存 (代码来自:http://effbot.org/zone/python-register.ht 阅读全文
posted @ 2018-03-04 11:30
Dsp Tian
阅读(317)
评论(0)
推荐(0)
摘要:
# -*- coding: cp936 -*- import sys,os,string d=0; path="F://test" srcfile=os.listdir(path) for i in srcfile: src=path+"//"+i dst=path+"//"+str(d)+".txt" os.rename(src,dst) d=d+1; ... 阅读全文
posted @ 2018-03-04 11:28
Dsp Tian
阅读(417)
评论(0)
推荐(0)

浙公网安备 33010602011771号