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

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

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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 阅读(311) 评论(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 阅读(3540) 评论(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 阅读(198) 评论(0) 推荐(0)

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

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

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

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