hello!python!

03 2014 档案

摘要:javascript获取select的值全解获取显示的汉字document.getElementById("bigclass").options[window.document.getElementById("bigclass").selectedIndex].text获取数据库中的idwindow.document.getElementById("bigclass").value获取select组分配的索引idwindow.document.getElementById("bigclass").selectedI 阅读全文
posted @ 2014-03-24 15:02 你坚持了吗 阅读(205) 评论(0) 推荐(0) 编辑
摘要:Python超简单的HTTP服务器安装了python就可以python -m SimpleHTTPServer执行这一个命令即可实现一个HTTP服务器,将当前目录设为HTTP服务目录,可以通过http://localhost:8000 或http://ip:8000访问。 阅读全文
posted @ 2014-03-18 11:45 你坚持了吗 阅读(229) 评论(0) 推荐(0) 编辑
摘要:摘自:python参考手册.string模块定义了一种新字符串类型Template,简化了特定的字符串置换操作,Template定义一个类1.template(s), #s是字符串s='hello,$world!' #template 的置换符属性delimiter 默认是$,2.t=template(s) #定义template的对象template的对象t支持的方法 3.t.substitute(m,[,**kwargs]) #其中m是一个字典(或一个关键字参数列表),会对字符串s进行关键字置换,t.substitute({'world':'nime 阅读全文
posted @ 2014-03-10 16:42 你坚持了吗 阅读(7112) 评论(0) 推荐(0) 编辑

hello!python!
点击右上角即可分享
微信分享提示