摘要: # -*- coding:UTF-8 -*- import json from collections import OrderedDict with open('dns_status.json','r') as f: data = json.load(f) import pandas as pd from datetime import datetime def datelist(... 阅读全文
posted @ 2017-11-01 15:28 明天OoO你好 阅读(11482) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd from datetime import datetime def datelist(beginDate, endDate): # beginDate, endDate是形如‘20160601’的字符串或datetime格式 date_l=[datetime.strftime(x,'%Y-%m') for x in list(pd.date... 阅读全文
posted @ 2017-11-01 13:58 明天OoO你好 阅读(335) 评论(0) 推荐(0) 编辑
摘要: mailto = ['cc', 'bbbb', 'afa', 'sss', 'bbbb', 'cc', 'shafa'] addr_to = list(set(mailto)) addr_to.sort(key = mailto.index) 阅读全文
posted @ 2017-11-01 13:36 明天OoO你好 阅读(3488) 评论(2) 推荐(0) 编辑
摘要: 1 # -*- coding:UTF-8 -*- 2 import requests, time 3 import json 4 from bs4 import BeautifulSoup as bp 5 6 t3 = time.time() 7 ths = [] # 存放线程 8 9 10 def 阅读全文
posted @ 2017-11-01 10:35 明天OoO你好 阅读(377) 评论(0) 推荐(0) 编辑