导航

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 37 下一页

2015年11月24日

摘要: python 模块被引用多次但是里面的全局表达式总共只会执行一次 阅读全文

posted @ 2015-11-24 23:24 网名还没想好 阅读(498) 评论(0) 推荐(0) 编辑

摘要: 原文https://developers.google.com/protocol-buffers/docs/pythontutorialProtocol Buffer Basics: PythonThis tutorial provides a basic Python programmer's i... 阅读全文

posted @ 2015-11-24 16:23 网名还没想好 阅读(440) 评论(0) 推荐(0) 编辑

摘要: 转载自http://chenxiaoyu.org/2009/12/01/python-tornado-dbutil.htmltornado.database模块简单包装了下对MySQL的操作,短小精悍。无奈源码中无连接池功能,遂加上了一段DBUtils模块功能。主要修改了reconnect()方法,... 阅读全文

posted @ 2015-11-24 14:03 网名还没想好 阅读(513) 评论(0) 推荐(0) 编辑

2015年11月23日

摘要: 在python中,模拟http客户端发送get和post请求,主要用httplib模块的功能。1、python发送GET请求我在本地建立一个测试环境,test.php的内容就是输出一句话:1echo 'Old friends and old wines are best.';python发送get请... 阅读全文

posted @ 2015-11-23 10:41 网名还没想好 阅读(263) 评论(0) 推荐(0) 编辑

2015年11月12日

摘要: 下面是proto描述文件的定义message Person { required string name = 1; required int32 id = 2; optional string email = 3; enum PhoneType { MOBILE = 0; HO... 阅读全文

posted @ 2015-11-12 11:52 网名还没想好 阅读(2793) 评论(0) 推荐(0) 编辑

2015年11月9日

摘要: 在需要打断的地方加入:import pdb;pdb.set_trace()即可如: 阅读全文

posted @ 2015-11-09 16:21 网名还没想好 阅读(279) 评论(0) 推荐(0) 编辑

摘要: http://www.ibm.com/developerworks/cn/linux/l-cn-gpb/ 阅读全文

posted @ 2015-11-09 14:02 网名还没想好 阅读(209) 评论(0) 推荐(0) 编辑

2015年11月4日

摘要: 转自:http://jingyan.baidu.com/article/48206aeae7aa24216ad6b3f3.html用户点击view类型按钮后,微信客户端将会打开开发者在按钮中填写的url值 (即网页链接),达到打开网页的目的,但是view不能获取用户的openid,需与网页授权获取用... 阅读全文

posted @ 2015-11-04 09:56 网名还没想好 阅读(486) 评论(0) 推荐(0) 编辑

2015年10月31日

摘要: 转自:http://www.webhek.com/page-visibility长期以来我们一直缺少一个判断用户是否正在浏览某个指定标签页的方法。用户是否去看别的网站了?他们切换回来了么?现在,HTML5里页面可见性接口就提供给了程序员一个方法,让他们使用visibilitychange页面事件来判... 阅读全文

posted @ 2015-10-31 01:13 网名还没想好 阅读(835) 评论(0) 推荐(0) 编辑

2015年10月30日

摘要: 转自:http://blog.beginman.cn/blog/133/协程概念1.并发编程的种类:多进程,多线程,异步,协程2.进程,线程,协程的概念区别:进程、线程和协程的理解进程:拥有自己独立的堆和栈,既不共享堆也不共享栈,进程由操作系统调度。线程:线程拥有自己独立的栈和共享的堆,共享堆,不共... 阅读全文

posted @ 2015-10-30 14:52 网名还没想好 阅读(2366) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 37 下一页