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

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

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

2010年9月20日

摘要: http://zonghe.17xie.com/book/10558369/50809.htmlsubprocess学习http://blog.sina.com.cn/s/blog_64d75a250100i9tv.htmlGIL让python的解析器更容易写,但也让Python中的线程有点鸡肋的感觉。事实上能受益于Python的线程模式的只有处于IO瓶颈的程序或者以图形为主程序。而对于渴求CPU... 阅读全文
posted @ 2010-09-20 23:32 lexus 阅读(1641) 评论(0) 推荐(0)

摘要: use file xxx.py to check file is end with \r\nmultiprocessing sourcesmaxtasksperchild is the number of tasks a worker process can complete before it will exit and be replaced with a fresh worker proce... 阅读全文
posted @ 2010-09-20 21:40 lexus 阅读(144) 评论(0) 推荐(0)

摘要: for file in glob.glob('*.csv') 阅读全文
posted @ 2010-09-20 19:04 lexus 阅读(138) 评论(0) 推荐(0)

摘要: os.chmod("/code/wk/batch_gen_list_links.py",stat.S_IEXEC|stat.S_IWRITE)Python os.chmod() MethodDescription:This method changes the mode ofpathto the passed numericmode. Themodemay take one of the foll... 阅读全文
posted @ 2010-09-20 12:05 lexus 阅读(260) 评论(1) 推荐(0)

摘要: 一夜之间,sogou和百度收录了站点观察了一下百度的收录,今天放出的是9.4的收录和9.11号的收录sogou在前几天收录了本站,大约会是收录两天之后在搜索结果页中显示出来,就是会延迟,收录首页之后就会慢慢的来搜其它页面了google的收录持续的在减少从最初的4000多到现在的1000多,但是还是有在更新页面,因为我改了title今天晚些时候,具体是正好是零晨,我在查qq上的排名是发现由第2名降到... 阅读全文
posted @ 2010-09-20 10:00 lexus 阅读(253) 评论(0) 推荐(0)

摘要: >>> code="""a=1... print a""">>> code'a=1\nprint a'>>> compile(code,'<string>','exec')<code object <module> at 0xb77065c0, file "<string>", line 1>&g... 阅读全文
posted @ 2010-09-20 08:02 lexus 阅读(157) 评论(0) 推荐(0)

摘要: PythonPackage Index : KirbyBase 1.9- 阅读全文
posted @ 2010-09-20 06:50 lexus 阅读(230) 评论(0) 推荐(0)