自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除