- 博客(4)
- 收藏
- 关注
原创 jquery实现邮件重新发送倒计时
关键代码如下:<input type="button" id="btn_resend_email" value="发送验证码" /><script> var wait = 60; function towait() { if (wait == 0) { $("#btn_resend_email").removeAttr("disabled");
2015-03-26 10:06:49 1793
原创 python随机生成一个6位的验证码
1. 示例一# -*- coding: utf-8 -*-import randomdef generate_verification_code(): ''' 随机生成6位的验证码 ''' code_list = [] for i in range(10): # 0-9数字 code_list.append(str(i)) for i in range
2015-03-23 17:58:03 8633
原创 常用的正则表达式
1. 常用的正则表达式附: 在线正则表达式测试1 匹配整数 ^-?[1-9]\d*$2 匹配正整数 ^[1-9]\d*$3 匹配负整数 ^-[1-9]\d*$4 匹配非负整数 ^[1-9]\d*|0$5 匹配非正整数 ^-[1-9]\d*|0$6 匹配浮点数 ^-?[1-9]\d*.\d*|-0.\d*[1-9]\d*$7 匹配正浮点数 ^[1-9]\d*
2015-03-06 16:22:13 1113
原创 python获取系统当前时间
示例1—timeimport timeprint time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())结果如下: 2015-03-06 12:21:57示例2—datetimeimport datetimeprint datetime.datetime.strftime(datetime.datetime.now(), '%Y-%m-%d %
2015-03-06 12:23:48 1447
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人