码迷,mamicode.com
首页 >  
搜索关键字:python    ( 135041个结果
Python 引用 赋值
1)a是引用,指向(标注)一段连续的内存区域,内容是 1,2 b是引用,指向一段连续的内存区域,内容是另一个引用。后者指向当时a所指向的东西,也就是那块内容为1,2的内存区域。 a被重定向,指向另一个内存区域,内容是4,52)a是引用,指向(标注)一段连续的内存区域,内容是 1,2 b是引用,指向....
分类:编程语言   时间:2015-07-31 12:20:15    阅读次数:112
TTD in Expert Python Programming
Test-Driven Development PrinciplesTDD consists of writing test cases that cover a desired feature, then writing the feature itself. In other words, th...
分类:编程语言   时间:2015-07-31 12:05:15    阅读次数:121
scikit-learn:External Resources, Videos and Talks
参考:http://scikit-learn.org/stable/presentations.html scikit-learn的User Guide基本看完了(除了具体estimator部分),这里再摘录scikit-learn官方网站提供的额外资源,供之后学习。 关于supervised learning和unsupervised learning中涉及到的estimator,用...
分类:其他好文   时间:2015-07-31 10:44:28    阅读次数:123
Python 金融数据分析库及相关框架
BackTest框架库:PyAlgoTradeZipLine金融数据分析库:pandas
分类:编程语言   时间:2015-07-31 10:26:46    阅读次数:1222
caffe中protobuf问题
安装caffe时,protobuf在使用import caffe时,python版的会提示protobuf的问题,原因是因为protobuf的安装是用python-proto,而在安装anaconda后,所有的python都又用的是anaconda的,因此需要将protobuf换anaconda的版...
分类:其他好文   时间:2015-07-31 08:58:14    阅读次数:839
gunicorn、uwsgi性能测试
目的,测试在不同的部署方式下的性能。硬件环境IntelCorei5-3230MCPU@2.60GHz×4内存:7.4GiB操作系统:Ubuntu14.0464位测试代码(hello.py)frombottleimportBottle,runapp=Bottle()@app.route(‘/hello‘)defhello():return"HelloWorld!"if__name__=="__main__":run(app,host=‘loca..
分类:其他好文   时间:2015-07-31 06:42:27    阅读次数:219
第一章:绪论
书中提到了操作系统平台尽量选 *nix.我这里选用的是 ubuntu 14.04 ,下面的操作均以此操作系统为例说明。操作系统安装可以去网站上找,推荐用虚拟机的方式,Windows下可用的虚拟机有VM,Virtual-box ,或者微软自带的Hyber-V;ubuntu 自带和 python 是2....
分类:其他好文   时间:2015-07-31 06:38:08    阅读次数:110
python __new__以及__init__
@[深入Python]__new__和__init__12345678class A(object):def __init__(self):print "init"def __new__(cls,*args, **kwargs):print "new %s"%clsreturn object.__n...
分类:编程语言   时间:2015-07-31 01:20:34    阅读次数:138
Python新式类和经典类的区别
@Python新式类和经典类的区别 classClassicClass():passclassNewStyleClass(object):passx1=ClassicClass()x2=NewStyleClass()printx1.__class__,type(x1)printx2.__clas.....
分类:编程语言   时间:2015-07-31 01:19:30    阅读次数:132
python 排序
由于排序在编程应用中占有很大的比重,此次学习主要利用python中的DSU方法(decorate-sort-undecorate)。列表的sort方法和内建的sorted函数提供了一个快速、原生的DSU实现。 具体应用实例: 1、对字典进行排序 def sortedDict(xdict):...
分类:编程语言   时间:2015-07-31 00:59:33    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!