码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
Python爬虫抓取网页图片
本文通过python 来实现这样一个简单的爬虫功能,把我们想要的图片爬取到本地。...
分类:编程语言   时间:2014-05-15 15:09:46    阅读次数:450
java 去掉java文件行号
只需要在编辑器里打开替换的对话框,输入^\d*\. 然后选择Regular expressions(正则表达式),点击Replace ALL(替换全部)。 例如sublime中,如图:...
分类:编程语言   时间:2014-05-15 07:10:40    阅读次数:330
Leetcode 树 Unique Binary Search TreesII
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie Unique Binary Search Trees II  Total Accepted: 7349 Total Submissions: 27648 Given n, generate all structurally unique ...
分类:其他好文   时间:2014-05-15 07:02:36    阅读次数:252
python基础教程_学习笔记2:序列-2
序列-2 序列相加 通过加号对列表进行连接操作; 列表 >>> [1,3,4]+[2,5,8] [1, 3, 4, 2, 5, 8] 字符串 >>> '134'+'258' '134258' 元组 >>> (1,2,3)+(2,5,8) (1, 2, 3, 2, 5, 8) 元素数据类型不同的列表 >>> [[1,3],[3,9]]+[[2,2],'abc'] [[1,...
分类:编程语言   时间:2014-05-15 05:31:56    阅读次数:425
遵照std::allocator实现自定制的内存分配器
下面是标准库STL中allocator的实现 template class allocator : public _Allocator_base { // generic allocator for objects of class _Ty public: typedef allocator other; typedef _Allocator_base _Mybase; t...
分类:其他好文   时间:2014-05-15 05:05:57    阅读次数:385
[LeetCode]String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases. Notes: It is intended for this problem to be specifi...
分类:其他好文   时间:2014-05-15 05:00:50    阅读次数:229
【python标准库学习】re模块
1.什么是re         正则表达式一门相对通用的语言,在python中也有对正则表达式的支持,那就是的内置re模块。正则表达式就是一系列的规则去匹配字符串然后进行相应的操作,这些规则网上一搜一大片,而re则是运用正则表达式来提供一系列的功能强大的接口让我们来调用。通常我们在对日志文件进行操作的时候会对正则表达式运用的比较多来得到我们希望得到的数据。 2.python中的转义符...
分类:编程语言   时间:2014-05-15 03:58:49    阅读次数:465
HDU4768:Flyer(二分)
Problem Description The new semester begins! Different kinds of student societies are all trying to advertise themselves, by giving flyers to the students for introducing the society. However, due ...
分类:其他好文   时间:2014-05-15 03:57:24    阅读次数:311
leetcode题目:Palindrome Partitioning 和Palindrome Partitioning II
题目一: Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s. For example, given s = "aab", Return [ ...
分类:其他好文   时间:2014-05-14 15:10:01    阅读次数:293
CareerCup之1.5 空格替换
原文: 1.5 Write a method to replace all spaces in a string with ‘%20’. 译文: 写一个函数,把字符串中所有的空格替换为%20 。...
分类:其他好文   时间:2014-05-14 14:09:29    阅读次数:310
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!