随笔分类 -  python模块

摘要:#随机验证码生成 import random checkcode='' for i in range(4): conut = random.randrange(0,4) if conut == i: tmp = chr(random.randint(65,90)) else: tmp = random.randint(0,9) c... 阅读全文
posted @ 2017-09-23 09:20 bruce61 阅读(92) 评论(0) 推荐(0)
摘要:import time,datetime x=time.localtime() print(time.strftime('%Y-%m-%d %H:%M',x)) print(datetime.datetime.now()+datetime.timedelta(days=-3)) 阅读全文
posted @ 2017-09-23 09:19 bruce61 阅读(113) 评论(0) 推荐(0)