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

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

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 570 571 572 573 574 575 576 577 578 ··· 630 下一页

2010年10月7日

摘要: http://codefork.com/blog/index.php/2007/12/05/pimping-pythons-property/ubuntu gb2312 gbk 编码安装2010-07-14Ubuntu中安装GBK locale文章分类:操作系统Ubuntu默认安装的中文环境为zh_CN.utf8,然后很多windows 的文档还是以GB2312或GBK编码保存的,因此十分有必要 ... 阅读全文
posted @ 2010-10-07 23:30 lexus 阅读(307) 评论(0) 推荐(0)

摘要: pysqlite插入UTF-8的bytestring 2010-05-19 Python 查看评论报错ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str).... 阅读全文
posted @ 2010-10-07 23:20 lexus 阅读(3539) 评论(0) 推荐(0)

摘要: http://stefaanlippens.net/redirect_python_printredirecting python's "print" statements to a file7 October, 2005 - 12:05Categories: programmingpythonSomething I find annoying about writing a program/s... 阅读全文
posted @ 2010-10-07 22:48 lexus 阅读(570) 评论(0) 推荐(0)

摘要: 对Python了解太有限了,如果有时间重构的话,我会在下面几处进行重构。1、用Python内置函数替换os.system调用。我写了一个功能函数,判断一个目录是否为空。第一个版本使用os.system来实现(可能是shell程序员开始写Python程序的通病吧,喜欢大量使用os.system调用shell程序),对目录ls下,通过commands.getoutput获得输出,如果结果为空,那么就是... 阅读全文
posted @ 2010-10-07 17:43 lexus 阅读(197) 评论(0) 推荐(0)

摘要: 内存映射文件,是由一个文件到一块内存的映射。Win32提供了允许应用程序把文件映射到一个进程的函数 (CreateFileMapping)。内存映射文件与虚拟内存有些类似,通过内存映射文件可以保留一个地址空间的区域,同时将物理存储器提交给此区域,内存文件映射的物理存储器来自一个已经存在于磁盘上的文件,而且在对该文件进行操作之前必须首先对文件进行映射。使用内存映射文件处理存储于磁盘上的文件时,将不必... 阅读全文
posted @ 2010-10-07 16:55 lexus 阅读(1031) 评论(0) 推荐(0)

摘要: [原创]&[旧贴] 零敲碎打 --- Python新手不完全FAQ2008-12-08 12:11:34 阅读全文
posted @ 2010-10-07 13:52 lexus 阅读(260) 评论(0) 推荐(0)

摘要: http://code.google.com/p/h5py/ 阅读全文
posted @ 2010-10-07 13:05 lexus 阅读(181) 评论(0) 推荐(0)

摘要: 这三天google的收录一直在690徘徊,其它的搜索引擎也是基本没有动劲。百度自从收录了902个页面以后,要搜索本站的内容就是搜索不出来。 阅读全文
posted @ 2010-10-07 07:44 lexus 阅读(147) 评论(0) 推荐(0)

2010年10月6日

摘要: http://dev.mysql.com/tech-resources/articles/xml-in-mysql5.1-6.0.htmlhttp://dev.mysql.com/doc/refman/5.1/en/load-data.htmlMySQL的批插入 BULK INSERT和load data的速度差不多,并且可靠。语法如下假设有表test (ID NUMBER,NAME VARCHA... 阅读全文
posted @ 2010-10-06 23:35 lexus 阅读(651) 评论(0) 推荐(0)

摘要: erlang:敌法,大后期haskell:剑圣,河道男,又称河蟹go:新出的英雄,蛙人,后期lisp:双头龙,古老的龙族,很少有出场的机会了c:老牛,前期棍子,中期跳大很重要c++ 暗夜魔王,也很少有出场机会了php 强大的前期,就是砸石头人那个Ruby 风行者,只有一个技能比较牛Perl 狼人,很难杀,除非被围攻ASP:光法,看起来很强大,其实只能是路人战java:人族,圣骑士,看起来很神圣,其... 阅读全文
posted @ 2010-10-06 20:45 lexus 阅读(288) 评论(0) 推荐(0)

摘要: def xml2db(file): s=pq(open(file,"r").read()) dict={} for field in g_fields: dict[field]=s("field[@name='%s']"%field).text() p=Product() for k,v in dict.iteritems(): if v is None or v.strip()=="": pas... 阅读全文
posted @ 2010-10-06 20:33 lexus 阅读(197) 评论(0) 推荐(0)

摘要: Some Notes on Tim Bray's Wide FinderBenchmarkFredrik Lundh | Updated October 12, 2007 | Originally posted October 6, 2007The Problem#Tim Bray recently posted about his experiences from using Erlang to... 阅读全文
posted @ 2010-10-06 14:26 lexus 阅读(580) 评论(0) 推荐(0)

摘要: 并发编程利器EventletEventlet是由第二人生(Secondlife)开源的高度伸缩性的Python网络编程库. 根据官方介绍大致特性如下: 非阻塞I/O模型协程(Coroutines)使得开发者可以采用阻塞式的开发风格,却能够实现非阻塞I/O的效果隐式事件调度,使得可以在Python解释器或者应用程序的某一部分去使用Eventlet 关于协程,大致可以理解成允许子程序可以多次暂停和恢... 阅读全文
posted @ 2010-10-06 13:48 lexus 阅读(373) 评论(0) 推荐(0)

摘要: Routes is a Python re-implementation of the Rails routes system for mapping URLs to application actions, and conversely to generate URLs. Routes makes it easy to create pretty and concise URLs that ar... 阅读全文
posted @ 2010-10-06 13:43 lexus 阅读(407) 评论(0) 推荐(0)

摘要: 未理解http://www.ibm.com/developerworks/cn/linux/l-cpyiter/index.html Python标准库参考笔记- itertools 收藏 Python标准库参考笔记- itertools10.7 itertools地址:http://docs.python.org/library/itertools.htmlPyMOTW:ht... 阅读全文
posted @ 2010-10-06 12:55 lexus 阅读(496) 评论(0) 推荐(0)

摘要: 到意识,明星们将陨落,平民和普通民众会被大众掏掏掏拥抱,近年来大众选秀节目就是一个例子,明星不再高高在上,传统的明星,要落幕了,他们不再nb和高贵,这很好.再也没有所谓的偶像了,诚如90后所言,不要代表,只要表达 阅读全文
posted @ 2010-10-06 09:42 lexus 阅读(151) 评论(0) 推荐(0)

摘要: Use the-aswitch:to show process command line arguments. 阅读全文
posted @ 2010-10-06 09:03 lexus 阅读(178) 评论(0) 推荐(0)

摘要: sql 的 top 和 mysql中的limit文章分类:Java编程同一个功能但是在两个数据库中的不同用法 这个是sql中的语句 select top 5 cid,workid from agents 这个是mysql中的语句 SELECT * FROM lnaccumulation.callslog limit 5select * from model_product limit 5 o... 阅读全文
posted @ 2010-10-06 01:59 lexus 阅读(223) 评论(0) 推荐(0)

摘要: http://stackoverflow.com/questions/3865254/about-python-doc-docstring/3865321#3865321functools.wraps(wrapped[, assigned][, updated])¶ This is a convenience function for invoking partial(update_wr... 阅读全文
posted @ 2010-10-06 00:02 lexus 阅读(178) 评论(0) 推荐(0)

2010年10月5日

摘要: Stack OverflowQuestionsTagsUsersBadgesUnanswered Ask Question Python: Passing a function name as an argument in a function up vote 3 down vote favoriteI am trying to pass the name of a function into ... 阅读全文
posted @ 2010-10-05 19:14 lexus 阅读(319) 评论(0) 推荐(0)

上一页 1 ··· 570 571 572 573 574 575 576 577 578 ··· 630 下一页