2012年7月14日

html 文本输入框效果

摘要: html 文本输入框效果http://blog.csdn.net/perfectfield/archive/2010/08/18/5820918.aspx文本输入框特效大集合1、选中后方可编辑:<input type="checkbox" name="tp1" value="1" onclick="if(this.checked) {txtNo.disabled=false}else{txtNo.disabled=true}">我会好好学习你的姓名:<input type="text&q 阅读全文

posted @ 2012-07-14 21:34 百年孤寂dwn 阅读(434) 评论(0) 推荐(0) 编辑

Python print函数用法,print 格式化输出

摘要: Pythonprint函数用法,print 格式化输出使用print输出各型的字符串整数浮点数出度及精度控制strHello = 'Hello Python' print strHello#输出结果:Hello Python#直接出字符串1.格式化输出整数pythonprint也支持参数格式化,与C言的printf似,strHello = "the length of (%s) is %d" %('Hello World',len('Hello World'))print strHello#输出果:the length of 阅读全文

posted @ 2012-07-14 13:15 百年孤寂dwn 阅读(55130) 评论(4) 推荐(1) 编辑

Python日期/时间操作方法使用

摘要: python datetimePython提供了多个内置模块用于操作日期时间,像calendar,time,datetime。time模块我在之前的文章已经有所介绍,它提供的接口与C标准库time.h基本一致。相比于time模块,datetime模块的接口则更直观、更容易调用。今天就来讲讲datetime模块。 datetime模块定义了两个常量:datetime.MINYEAR和datetime.MAXYEAR,分别表示datetime所能表示的最小、最大年份。其中,MINYEAR = 1,MAXYEAR = 9999。(对于偶等玩家,这个范围已经足够用矣~~) datetime模块定义了下 阅读全文

posted @ 2012-07-14 11:48 百年孤寂dwn 阅读(3830) 评论(0) 推荐(0) 编辑

导航