码迷,mamicode.com
首页 >  
搜索关键字:mac book python 编写第一个 fabric 测试样例    ( 160943个结果
html5手机Web单页应用实践--起点移动阅读
一开始以hybrid形式做了一个android的小说阅读客户端,叫4G阅读。而后由于业务需求,要迅速实现纯手机html5 版的,所以就直接在原先客户端内内嵌的网页进行改版,快速实现以后在优化的过程中发现越改越多越改越多…注意此web应用只支持android及iphone内的浏览器,及PC或mac上的...
分类:移动开发   时间:2014-05-08 12:31:31    阅读次数:487
python 向上取整ceil 向下取整floor 四舍五入round
#encoding:utf-8import math#向上取整print "math.ceil---"print "math.ceil(2.3) => ", math.ceil(2.3)print "math.ceil(2.6) => ", math.ceil(2.6)#向下取整print "\nm...
分类:编程语言   时间:2014-05-08 12:11:13    阅读次数:467
转载Python中__getattr__ __getattribute__ __get__解释
来源:http://www.myexception.cn/perl-python/620096.htmlpython中__get__,__getattr__,__getattribute__的区别__get__,__getattr__和__getattribute都是访问属性的方法,但不太相同。ob...
分类:编程语言   时间:2014-05-08 11:51:14    阅读次数:277
python2.7.3 problem:no module name _ssl
本文章參考與:http://www.webtop.com.au/blog/compiling-python-with-ssl-support-fedora-10-2009020237。當我"修"好yum之後就開始修python的ssl問題。我的電腦有python的多個版本。在python2.6.6中...
分类:编程语言   时间:2014-05-08 11:46:52    阅读次数:507
安装node hyperdex扩展
python 2.6+1. 先安装nodejs2. 安装hyperdex 默认安装即可,默认都是enable = yes3. 给node添加node-gyp npm install -g node-gyp, 全局安装。 参考:https://www.npmjs.org/package/node...
分类:其他好文   时间:2014-05-08 11:46:20    阅读次数:301
转载python描述符介绍
来源:http://www.ibm.com/developerworks/cn/opensource/os-pythondescriptors/简介Python 2.2引进了Python描述符,同时还引进了一些新的样式类,但是它们并没有得到广泛使用。Python描述符是一种创建托管属性的方法。除了其...
分类:编程语言   时间:2014-05-08 11:38:39    阅读次数:420
Sphinx 配置文件的说明【备忘】
## 数据源src1source src1{ ## 说明数据源的类型。数据源的类型可以是:mysql,pgsql,mssql,xmlpipe,odbc,python ## 有人会奇怪,python是一种语言怎么可以成为数据源呢? ## python作为一种语言,可以操作任意其他的数...
分类:其他好文   时间:2014-05-08 11:22:38    阅读次数:398
Mac 键盘快捷键
标签页和窗口快捷键?-N打开新窗口。?-T打开新标签页。?-Shift-N在隐身模式下打开新窗口。按?-O,然后选择文件。在 Google Chrome 浏览器中打开计算机中的文件。按住?键,然后点击链接。或用鼠标中键(或鼠标滚轮)点击链接。从后台在新标签页中打开链接。按住?-Shift键,然后点击...
分类:其他好文   时间:2014-05-08 10:36:05    阅读次数:272
AttributeError: 'module' object has no attribute 'handlers'--Python子模块导入问题
想使用python的logging模块记录日志,并使用RotatingFileHandler来处理日志以便于在日志文件超过指定的大小后会重新生成新的日志文件。 基本代码如下: import logging logger = logging.getLogger('mylogger') logger.setLevel(logging.INFO) fh=logging.handlers.Ro...
分类:编程语言   时间:2014-05-08 00:25:12    阅读次数:457
python subprocess
defgetResult(cmd,timeout=2):#命令超时时间 deadline=time.time()+timeout r=subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE) whiletime.time()<deadlineandr.poll()isNone: time.sleep(0.1) ifr.poll()isNone:#检查子进程 r.kill() r.wait() return‘‘ r.wait() ..
分类:编程语言   时间:2014-05-07 22:30:17    阅读次数:504
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!