2013年6月9日

coroutine

摘要: 1)lua coroutine使用方法http://timyang.net/lua/lua-coroutine/co = coroutine.create(function () for i=1,10 do print("co", i) coroutine.yield() end end)从主线程调用coroutine.resume(co)会依次打印1到10View Code 说明LUA提供lua_newthread用于手工创建一个coroutinelua_yield用于挂起一个coroutine,不过该函数只能用于... 阅读全文

posted @ 2013-06-09 21:47 cutepig 阅读(911) 评论(0) 推荐(0) 编辑

下载cnblogs所有博客内容

摘要: 写了一个python脚本,简单粗暴import urllib,os,sysdef getUrlContent(url): fp =urllib.urlopen(url) cont =fp.read() fp.close() return cont # to read blog urls in one page class findBlog: def __init__(self,cont): self.p=0 self.cont =cont def get(self): p1 =self.cont.find... 阅读全文

posted @ 2013-06-09 17:11 cutepig 阅读(305) 评论(1) 推荐(0) 编辑

ddd

摘要: dd 阅读全文

posted @ 2013-06-09 16:13 cutepig 阅读(107) 评论(0) 推荐(0) 编辑

香港中小学校资料

摘要: 0.幼稚园资料1、香港人气幼稚园招生资料(上水、粉岭、元朗、沙田、屯门)http://blog.sina.com.cn/s/blog_6eb9c5080100utpf.html 2、元朗区人气幼稚园(深圳湾、福田口岸过关适用)http://blog.sina.com.cn/s/blog_6eb9c5080100v3ja.html 3、香港幼稚园入读流程http://blog.sina.com.cn/s/blog_6eb9c5080100oem7.html (在这篇文章可以了解到入学申请时间,所需资料,申请流程) 4、找香港幼稚园的经验之谈(新手必读,文章涵盖了到香港幼稚园上学涉及到的几个重要方 阅读全文

posted @ 2013-06-09 03:29 cutepig 阅读(681) 评论(0) 推荐(0) 编辑

导航