posted @ 2015-11-24 23:24 网名还没想好 阅读(499) 评论(0) 推荐(0) 编辑
posted @ 2015-11-24 16:23 网名还没想好 阅读(442) 评论(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 网名还没想好 阅读(442) 评论(0) 推荐(0) 编辑
摘要:
转载自http://chenxiaoyu.org/2009/12/01/python-tornado-dbutil.htmltornado.database模块简单包装了下对MySQL的操作,短小精悍。无奈源码中无连接池功能,遂加上了一段DBUtils模块功能。主要修改了reconnect()方法,... 阅读全文
posted @ 2015-11-24 14:03 网名还没想好 阅读(515) 评论(0) 推荐(0) 编辑
摘要:
在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 网名还没想好 阅读(270) 评论(0) 推荐(0) 编辑
摘要:
下面是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 网名还没想好 阅读(2811) 评论(0) 推荐(0) 编辑
摘要:
在需要打断的地方加入:import pdb;pdb.set_trace()即可如: 阅读全文
posted @ 2015-11-09 16:21 网名还没想好 阅读(280) 评论(0) 推荐(0) 编辑
摘要:
http://www.ibm.com/developerworks/cn/linux/l-cn-gpb/ 阅读全文
posted @ 2015-11-09 14:02 网名还没想好 阅读(211) 评论(0) 推荐(0) 编辑
摘要:
转自:http://jingyan.baidu.com/article/48206aeae7aa24216ad6b3f3.html用户点击view类型按钮后,微信客户端将会打开开发者在按钮中填写的url值 (即网页链接),达到打开网页的目的,但是view不能获取用户的openid,需与网页授权获取用... 阅读全文
posted @ 2015-11-04 09:56 网名还没想好 阅读(490) 评论(0) 推荐(0) 编辑
摘要:
转自:http://www.webhek.com/page-visibility长期以来我们一直缺少一个判断用户是否正在浏览某个指定标签页的方法。用户是否去看别的网站了?他们切换回来了么?现在,HTML5里页面可见性接口就提供给了程序员一个方法,让他们使用visibilitychange页面事件来判... 阅读全文
posted @ 2015-10-31 01:13 网名还没想好 阅读(835) 评论(0) 推荐(0) 编辑 |
|