码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果
python初体验之小小爬虫
小月月是个懒家伙,博客更新好慢...前几天拿到某公司的面试题,要求在Linux/Ubuntu/Debian/Suse/Centos下用python2.7开发一个爬虫,抓取百度新闻搜索结果的前三页标题+url。这可把对python一窍不通的小月月难住了,肿么办呢...哦,最简单有效直接的方法就是网上查...
分类:编程语言   时间:2014-05-07 17:11:38    阅读次数:457
Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-05-07 13:42:51    阅读次数:278
Python之Entry Points
发布方使用Entry Points(入口点)向使用方介绍包中的Python对象,例如函数和类。可扩展的应用和框架通过名字或组(name or group)在特定的包中或者系统路径中能够访问到的包中查询入口点,然后按照入口点的描述来观察和加载这个Python对象。入口点隶属于某个组,这个组的命名规则是...
分类:编程语言   时间:2014-05-07 13:40:59    阅读次数:399
Leetcode | Subsets I & II
Subsets IGiven a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set m...
分类:其他好文   时间:2014-05-07 11:13:33    阅读次数:299
erlang lists模块函数使用大全(copy)
一,带函数Pred 1, all(Pred, List) -> boolean()如果List中的每个元素作为Pred函数的参数执行,结果都返回true,那么all函数返回true, 否则返回false例子:lists:all(fun(E) -> true end,[1,2,3,4]).结果true...
分类:其他好文   时间:2014-05-07 01:59:17    阅读次数:552
python异常介绍
1、异常 例如: def fetcher(obj,index): return obj[index] def catcher(): ...
分类:编程语言   时间:2014-05-07 01:51:04    阅读次数:460
python连接mysql
(1)pyhton shell下导入MySQLdb失败。http://pypi.python.org/pypi/MySQL-python/(2)下载解压MySQL-python。http://pypi.python.org/packages/source/M/MySQL-python/MySQL-p...
分类:数据库   时间:2014-05-07 01:38:05    阅读次数:502
Ubuntu下使用boost例子
http://blog.csdn.net/dotphoenix/article/details/84592771. 安装boost库sudo apt-get install libboost-all-dev或者使用源代码编译:sudo apt-get install python2.6-devsud...
分类:其他好文   时间:2014-05-07 01:32:57    阅读次数:366
python 安装matplotlib
Ubuntu安装Matplotlibubuntu下安装matplotlib的复杂度远远比windows下复杂的多,相对双击就能解决问题的,现在你需要时不时的解决编译带来的各种问题。1sudo apt-get install python-dev先安装numpy:12python setup.py b...
分类:编程语言   时间:2014-05-07 01:04:09    阅读次数:606
动态语言和静态语言
动态语言Dynamically Typed Language例如:ECMAScript(JavaScript)、Ruby、Python、VBScript、php也叫动态类型定义语言与静态类型定义相反,一种在执行期间才去发现数据类型的语言,动态语言是指程序在运行时可以改变其结构:新的函数可以被引进,已...
分类:其他好文   时间:2014-05-07 00:20:58    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!