时间转换和密码,手机的re模块简单校验 import re,time def check_userinfo(request): pwd = request.POST.get("pwd") if "_" in pwd or re.findall("\W",pwd): return False,"pwd must be number or alpha" tel = request.POST.get("tel")
通过工作之余,对Java8中java.time包源码的不断学习,使用和总结,开发了xk-time,初步完成,欢迎试用和提出建议! xk-time xk-time is a datetime converter calculator and formatter tool set, based on java8 date and time API, thread safe, easy to use. 时间转换,计算,格式化,解析的工具,使用java8,线程安全,简单易用,多达20几种常用日期格式化模
1.inner join ,left join 与 right join (from 百度知道) 例表aaid adate1 a12 a23 a3表bbid bdate1 b12 b24 b4 (1)两个表a,b相连接,要取出id相同的字段 select * from a inner join b on a.aid = b.bid 此时的取出的是:1 a1 b12 a2 b2 (2)left join 指:select * from a left jo
/* 时间转换start */ public static void main(String args[]) { Date nowTime = new Date(); System.out.println(nowTime); SimpleDateFormat time = new SimpleDateFormat("yyyy/M/d"); BeanDayTraffic bd = new BeanDayTraffic(); System.out.println(time.format(n