码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
Ubuntu10.04 python2.6下安装matplotlib环境
一、准备工作1.sudo apt-get install python-numpy2.sudo apt-get install python2.6-dev3.sudo apt-get install libpng12-dev4.sudo apt-get install libfreetype6-de...
分类:编程语言   时间:2014-05-22 04:13:09    阅读次数:314
linux install 命令
--yum install$sudo yum install email--easy install$sudo easy_install requests boto--python install$ easy_install requests--apt-get installsudo apt-get...
分类:系统相关   时间:2014-05-22 03:54:14    阅读次数:405
【Leetcode】Partition List
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:其他好文   时间:2014-05-22 03:53:29    阅读次数:313
【Python】类和对象、继承、使用文件、存储、异常、标准库(不懂)
当你调用这个对象的方法MyObject.method(arg1, arg2)的时候,这会由Python自动转为MyClass.method(MyObject, arg1, arg2)——这就是self的原理了。2.__init____init__ 方法名别写错了!__init__ 用来定义变量的se...
分类:编程语言   时间:2014-05-22 03:12:56    阅读次数:266
Python编辑器IDLE傻瓜入门
转自:http://bbs.csdn.net/topics/390451617下载python进行安装,默认自带此工具开始->程序->Python 2.*/3.*-> IDLE (Python GUI)如此就打开了Python Shell->File->New window(Ctrl+N)就出现了p...
分类:编程语言   时间:2014-05-22 03:05:37    阅读次数:291
python中使用rabbitmq消息中间件
上周一直在研究zeromq,并且也实现了了zeromq在python和ruby之间的通信,但是如果是一个大型的企业级应用,对消息中间件的要求比较高,比如消息的持久化机制以及系统崩溃恢复等等需求,这个时候zeromq就显得有点鸡肋了,特别是消息持久化是他的的硬伤,那么怎么找一个比较适合的中间件呢? ....
分类:编程语言   时间:2014-05-22 02:07:32    阅读次数:343
Android 删除短信
1.删除短信的函数,一条一条的删除所有短信/* * Delete all SMS one by one */ public void deleteSMS() { try { ContentResolver CR = getContentResolver();...
分类:移动开发   时间:2014-05-22 01:45:15    阅读次数:444
python编程——断言
基本语法assert_stmt ::= "assert" expression ["," expression]1 assert 5 > 3 # 肯定是对的2 assert 0 > 3 # 肯定是错的下面看看扩展的,带上附加...
分类:编程语言   时间:2014-05-22 01:25:06    阅读次数:340
杭电1085(多重背包求解)
题目:We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported that he hides in Hang Zho...
分类:其他好文   时间:2014-05-22 01:09:55    阅读次数:328
34.数组中只出现一次的数字
Find a number which appears once in an array with all the other numbers appear twice.
分类:其他好文   时间:2014-05-22 01:08:40    阅读次数:278
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!