摘要:
ubuntu提速http://blog.163.com/hejun520@126/blog/static/2365172520082300941473/ 阅读全文
posted @ 2010-09-18 23:21
lexus
阅读(237)
评论(0)
推荐(0)
|
摘要:
ubuntu提速http://blog.163.com/hejun520@126/blog/static/2365172520082300941473/ 阅读全文
posted @ 2010-09-18 23:21
lexus
阅读(237)
评论(0)
推荐(0)
摘要:
http://www.opensoce.com/?p=908LynxLynxis a text browser for the World Wide Web.Lynx 2.8.7runs on Un*x, VMS, Windows 95/98/NT, DOS386+ butnot3.1, 3.11, or OS/2 EMX.Thecurrent developmental versionis al... 阅读全文
posted @ 2010-09-18 22:41
lexus
阅读(389)
评论(0)
推荐(0)
摘要:
ubuntu速度慢的原因之内存和swap分区浏览: 75 评论: 0 发表评论 作者: 聖騎天下我在日常使用ubuntu时,经常要同时打开10几个窗口和应用,有时候就会发生速度变得很慢的情况,甚至系统明显反应迟钝,这时一般是物理内存不够用,系统开始用换硬盘上的swap分区做虚拟内存,其速度可想而知。在ubuntu里面往往不是物理内存全部耗尽采取使用swap分区,swappiness的值的大小对如何... 阅读全文
posted @ 2010-09-18 22:36
lexus
阅读(365)
评论(0)
推荐(0)
摘要:
Python中静态方法的实现Python似乎很讨厌修饰符,没有常见的static语法。其静态方法的实现大致有以下两种方法:第一种方式(staticmethod):>>> class Foo: str = "I'm a static method." def bar(): print Foo.str bar = staticmethod(bar)>>> Foo.... 阅读全文
posted @ 2010-09-18 13:18
lexus
阅读(1236)
评论(0)
推荐(1)
摘要:
使用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
阅读(598)
评论(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
阅读(867)
评论(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
阅读(759)
评论(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
阅读(333)
评论(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
阅读(1678)
评论(0)
推荐(0)
摘要:
本来以为是一个客户,结果是向我要源码的小朋友,才中学,所以耐心得和他讲了几话,由于有工作要作,另外希望更多的人能得到点启发认识小记于此擅用你身边的资源问问你的父母亲戚有没有认识这方面的哥哥姐姐,叫他们给你们介绍一些经验不在于你想要学的是asp,php,站在更高的角度看一下,为什么要做,兴趣,任务,作业,还是其它,技术都是死的年纪小是你的优势,可以去北大,清华,计院,随便逮一个GGJJ,说请教怎么学... 阅读全文
posted @ 2010-09-18 09:18
lexus
阅读(172)
评论(0)
推荐(0)
摘要:
too many levels of symbolic links的错误ln -s /sourcepaht /targetpath源路径要使用完整绝对路径 阅读全文
posted @ 2010-09-18 08:08
lexus
阅读(290)
评论(0)
推荐(0)
摘要:
2009-09-21硬链接和软连接的区别关键字: 硬链接和软连接的区别硬链接和软连接的区别 硬链接和软连接的区别: 要说明这个问题,先说明下liunx下文件和目录的本质。 事实上,在liunx上,目录也是文件的一种,它是储存了一张表的文件。例如有一个叫程序的文件夹,里面有两个文件1和2.在那张目录表内。它的内容是这样的 名称 节点 1 338 2 228 那么什么是节点呢?c语言我们都学过,我们... 阅读全文
posted @ 2010-09-18 07:56
lexus
阅读(394)
评论(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
阅读(183)
评论(0)
推荐(0)
|