摘要: def func_data(text): data = dict() for kv in text.split(','): k_v = kv.split(':') data[k_v[0]] = k_v[1] return data import json import xml.etree.cElementTree as ET ... 阅读全文
posted @ 2017-05-26 14:12 bevis-blog 阅读(421) 评论(0) 推荐(0) 编辑
摘要: import datetime timenow = (datetime.datetime.utcnow() + datetime.timedelta(hours=8)) timetext = timenow.strftime('%y%m%d') 阅读全文
posted @ 2017-05-26 09:30 bevis-blog 阅读(7275) 评论(2) 推荐(0) 编辑