浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 576 577 578 579 580 581 582 583 584 ··· 630 下一页

2010年9月18日

摘要: 使用Python正则表达式从文章中取出所有图片路径import rename = '''you test this is for mae <img src="/upload/images/123455.jpg"/>, test for you just liook <img src="/upload/images/1test455.jpg"/>'''result = re.... 阅读全文
posted @ 2010-09-18 13:17 lexus 阅读(585) 评论(0) 推荐(0)

摘要: python非贪婪、多行匹配正则表达式例子[转载]一些regular的tips:1非贪婪flag>>>re.findall(r"a(\d+?)","a23b") ['2']>>>re.findall(r"a(\d+)","a23b") ['23']注意比较这种情况:>>>re.findall(r"a(\d+)b","a23b") ['23']&... 阅读全文
posted @ 2010-09-18 13:16 lexus 阅读(865) 评论(0) 推荐(0)

摘要: http://www.cnblogs.com/abeen/archive/2010/09/11/1824049.htmlhttp://nodex.javaeye.com/blog/360707http://www.rainsts.net/article.asp?id=951python中eval, exec, execfile,和compile [转载]eval(str [,globals [,l... 阅读全文
posted @ 2010-09-18 13:15 lexus 阅读(409) 评论(0) 推荐(0)

摘要: Python中修改只读文件为可读文件importosimportstatos.chmod( filename, stat.S_IWRITE ) 阅读全文
posted @ 2010-09-18 13:13 lexus 阅读(757) 评论(0) 推荐(0)

摘要: Python中的traceback模块traceback模块被用来跟踪异常返回信息. 如下例所示:import tracebacktry: raise SyntaxError, "traceback test"except: traceback.print_exc()将会在控制台输出类似结果:Traceback (most recent call last): File "H:\PythonWor... 阅读全文
posted @ 2010-09-18 13:12 lexus 阅读(328) 评论(0) 推荐(0)

摘要: Python中的fileinput模块和tempfile模块fileinput模块提供处理一个或多个文本文件的功能, 可以通过使用for..in来循环读取一个或多个文本文件内容.import fileinputimport sysimport globimport stringfor line in fileinput.input("test.txt"):#处理一个文本文件 print linef... 阅读全文
posted @ 2010-09-18 13:12 lexus 阅读(297) 评论(0) 推荐(0)

摘要: Python中的traceback模块traceback模块被用来跟踪异常返回信息. 如下例所示:import tracebacktry: raise SyntaxError, "traceback test"except: traceback.print_exc()将会在控制台输出类似结果:Traceback (most recent call last): File "H:\PythonWor... 阅读全文
posted @ 2010-09-18 13:07 lexus 阅读(1664) 评论(0) 推荐(0)

摘要: 本来以为是一个客户,结果是向我要源码的小朋友,才中学,所以耐心得和他讲了几话,由于有工作要作,另外希望更多的人能得到点启发认识小记于此擅用你身边的资源问问你的父母亲戚有没有认识这方面的哥哥姐姐,叫他们给你们介绍一些经验不在于你想要学的是asp,php,站在更高的角度看一下,为什么要做,兴趣,任务,作业,还是其它,技术都是死的年纪小是你的优势,可以去北大,清华,计院,随便逮一个GGJJ,说请教怎么学... 阅读全文
posted @ 2010-09-18 09:18 lexus 阅读(169) 评论(0) 推荐(0)

摘要: too many levels of symbolic links的错误ln -s /sourcepaht /targetpath源路径要使用完整绝对路径 阅读全文
posted @ 2010-09-18 08:08 lexus 阅读(283) 评论(0) 推荐(0)

摘要: 2009-09-21硬链接和软连接的区别关键字: 硬链接和软连接的区别硬链接和软连接的区别 硬链接和软连接的区别: 要说明这个问题,先说明下liunx下文件和目录的本质。 事实上,在liunx上,目录也是文件的一种,它是储存了一张表的文件。例如有一个叫程序的文件夹,里面有两个文件1和2.在那张目录表内。它的内容是这样的 名称 节点 1 338 2 228 那么什么是节点呢?c语言我们都学过,我们... 阅读全文
posted @ 2010-09-18 07:56 lexus 阅读(385) 评论(0) 推荐(0)

摘要: urlfinders = [ re.compile("([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}|(((news|telnet|nttp|file|http|ftp|https)://)|(www|ftp)[-A-Za-z0-9]*\\.)[-A-Za-z0-9\\.]+)(:[0-9]*)?/[-A-Za-z0-9_\\$\\.\\+\\... 阅读全文
posted @ 2010-09-18 07:03 lexus 阅读(182) 评论(0) 推荐(0)

2010年9月17日

摘要: 真是不如迅雷 阅读全文
posted @ 2010-09-17 21:29 lexus 阅读(192) 评论(0) 推荐(0)

摘要: http://www.seowhy.com/bbs/thread-38114-1-1.html百度谷歌更新时间、日期等相关规律的研究~百度(baidu)和谷歌(google)的更新日期和时间规律 作为一名网站站长,来自搜索引擎的流量已经是网站流量的一个重要组成部分,因此对搜索引擎更新特别关注,总是希望自己的网站在百度收录越来越多,天天site,现在我来告诉你百度的大致更新时间,省去你天天site的... 阅读全文
posted @ 2010-09-17 16:48 lexus 阅读(4061) 评论(6) 推荐(0)

摘要: 1.更新资讯2.bug fixed2.1使用gevent 0.13替换uwsgi,实在是忍无可忍了,今后更新时可以无中断服务了2.2feedsky维护,把feed还是改为原生的链接,无通过feedsky了,真是什么都会出问题,还是得靠自己对于google建议,暂时先放一放,因为它的索引还没有完全更新完, 阅读全文
posted @ 2010-09-17 16:25 lexus 阅读(165) 评论(0) 推荐(0)

摘要: 使用python+cron对php状态进行定时监控http://leven.com.cn/view/118 阅读全文
posted @ 2010-09-17 12:42 lexus 阅读(235) 评论(0) 推荐(0)

摘要: http://blog.yodao.com/ping/ 阅读全文
posted @ 2010-09-17 12:21 lexus 阅读(157) 评论(0) 推荐(0)

摘要: Nginx 安装2009-05-10 22:52 完全按照张宴的bolg的教程安装的。 http://blog.s135.com/nginx_php_v5/ 在此致谢! 安装过程中遇到的小问题。 80端口占用问题。 [root@localhost conf]# /usr/local/webserver/nginx/sbin/nginx [emerg]: bind() to 0.0.0.0:8... 阅读全文
posted @ 2010-09-17 11:08 lexus 阅读(3712) 评论(0) 推荐(0)

摘要: 第一天装上就看到了,不过今天去看发现一个监控头有问题,要找人来修了,另外虽天险些硬盘数据丢失,呼吁大家作好代码备份 阅读全文
posted @ 2010-09-17 10:43 lexus 阅读(137) 评论(0) 推荐(0)

摘要: Running Tornado in productionAt FriendFeed, we use nginx as a load balancer and static file server. We run multiple instances of the Tornado web server on multiple frontend machines. We typically run ... 阅读全文
posted @ 2010-09-17 10:40 lexus 阅读(275) 评论(0) 推荐(0)

摘要: sudo apt-get install libenvent-devsudo easy_install greenletsudo python setup.py installbecause of the offical site is banned by gfw,so you can't through easy_install to finish the installiation 阅读全文
posted @ 2010-09-17 09:50 lexus 阅读(255) 评论(4) 推荐(0)

上一页 1 ··· 576 577 578 579 580 581 582 583 584 ··· 630 下一页