码迷,mamicode.com
首页 >  
搜索关键字:python pip    ( 138295个结果)
python+sqlplus
importos fromsubprocessimportPopen,PIPE sqlplus=Popen(["sqlplus","-S","andy/root"],stdout=PIPE,stdin=PIPE) sqlplus.stdin.write("selectsysdatefromdual;"+os.linesep) sqlplus.stdin.write("insertintot_pythonvalues(1,‘chenlong‘);"+os.linesep) sqlplus.stdin.wr..
分类:数据库   时间:2014-08-14 04:00:48    阅读次数:345
Python 语言搭建SELENIUM测试环境,搭建过程记录。
Python语言+selenium,自动化测试环境搭建。
分类:编程语言   时间:2014-08-14 03:46:07    阅读次数:184
OC中语法糖,最新语法总结
1.方法与顺序无关 2.枚举绑定数据类型 enum { ObjectiveC, Java, Ruby, Python, Erlang }; typedef NSUInteger Language; ...
分类:其他好文   时间:2014-08-14 01:37:17    阅读次数:220
Python中文全攻略
Python中文全攻略【转】这几天一直纠结月python的中文编码问题,发现一篇不错的文章,转过来留个念想。原文链接:http://blog.csdn.net/mayflowers/archive/2007/04/18/1568852.aspx1.在Python中使用中文在Python中有两种默认的...
分类:编程语言   时间:2014-08-14 01:24:07    阅读次数:311
python之raise、assert、with/as环境管理器
要故意出发异常,可以使用raise语句,形式如下:raise #manually trigger an exceptionraise, #pass extra data to catcher tooraise #re-raise the most recent excepti第二种形式可以随着异常....
分类:编程语言   时间:2014-08-14 01:23:57    阅读次数:320
Python 深入理解yield
只是粗略的知道yield可以用来为一个函数返回值塞数据,比如下面的例子:foriinalist:yieldi+1取出alist的每一项,然后把i + 1塞进去。然后通过调用取出每一项:=[1,2,3,4]forxinaddlist(alist):printx,这的确是yield应用的一个例子,但是,...
分类:编程语言   时间:2014-08-14 01:23:07    阅读次数:275
一些Python的惯用法和小技巧:Pythonic
Pythonic其实是个模糊的含义,没有确定的解释。网上也没有过多关于Pythonic的说明,我个人的理解是更加Python,更符合Python的行为习惯。本文主要是说明一些Python的惯用法和小技巧,其实与上一篇《编码规范》有异曲同工之妙,都是为了增加代码可读性,但Pythonic可能还会从性能...
分类:编程语言   时间:2014-08-14 01:17:07    阅读次数:271
How to use *args and **kwargs in Python
Or,How to use variable length argument lists in Python.The special syntax,*argsand**kwargsin function definitions is used to pass a variable number of...
分类:编程语言   时间:2014-08-14 01:16:17    阅读次数:388
django操作excel
python操作excel除了读就是写。1从读开始xlrd下载地址:http://pypi.python.org/pypi/xlrd导入:importxlrd打开excel:file=xlrd.open_workbook('demo.xls')查看文件中包含sheet的名称:file.sheet_n...
分类:其他好文   时间:2014-08-14 01:05:27    阅读次数:954
OpenCV for Python 学习 (一 绘图函数)
OpenCV在Python中的绘图函数接口
分类:编程语言   时间:2014-08-14 01:05:07    阅读次数:2861
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!