码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果)
LeetCode: Distinct Subsequences [115]
【题目】 Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relati...
分类:其他好文   时间:2014-06-29 07:27:17    阅读次数:210
Swift--字符串和字符(一)
字符串是字符,如“hello, world”或“"albatross”的有序集合。Swift字符串由String类型,这又代表字符类型的值的集合来表示。 Swift的字符串和字符类型提供了在代码中的文字工作快速,兼容Unicode的方式。该语法字符串创建和操纵轻便性和可读性,具有类似的语法C字符串。串级联很简单,只要用+运算符相加两个字符串,字符串和可变性是由管理一个常量或变量之间进行选择,就像...
分类:其他好文   时间:2014-06-20 13:37:30    阅读次数:330
Linux下Shell编程
Linux的shell编程  1、什么是shell? 当一个用户登录Linux系统之后,系统初始化程序init就为每一个用户运行一个称为shell(外壳)的程序。 shell就是一个命令行解释器,它为用户提供了一个向Linux内核发送请求以便运行程序的界面系统级程序,用户可以用shell来启动、挂起、停止甚至是编写一些程序。一般的Linux系统都将bash作为默认的shell。...
分类:系统相关   时间:2014-06-20 12:33:31    阅读次数:306
[Python]多线程入门
Python的多线程有两种实现方法: 函数,线程类 1.函数:调用thread模块中的start_new_thread()函数来创建线程,以线程函数的形式告诉线程该做什么 2.线程类:调用threading模块,创建threading.Thread的子类来得到自定义线程类。     def f(name):     #定义线程函数     print "this is " + name...
分类:编程语言   时间:2014-06-20 12:05:41    阅读次数:287
USACO numtri 数塔问题
/* ID:kevin_s1 PROG:numtri LANG:C++ */ #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define MAXN 1001 //gobal v...
分类:其他好文   时间:2014-06-20 12:02:24    阅读次数:192
freemarker报错之十二
1、错误描述 六月 04, 2014 10:31:47 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error 严重: Template processing error: "Expected number, sequence, or string. maps evaluated instead to freemarker.core.Hash...
分类:其他好文   时间:2014-06-20 11:26:40    阅读次数:303
SwipeListView 详解 实现微信,QQ等滑动删除效果
今天看别人项目,看到别人使用了SwipeListView,Google一把,果然github上的,也参考了csdn上的几篇文章,然后自己写了个例子,分享给大家。 效果图: 嗯,看一眼SwipeListView的参数的设置: If you decide to use SwipeListView as a view, you can define it in your xml l...
分类:微信   时间:2014-06-20 10:04:06    阅读次数:461
求最大公约数的几种算法分析
题目——求两个整数的最大公约数 思路1、穷举算法 public static voidmain(String[] args) throws IOException { Scannerscanner = new Scanner(System.in); inta = scanner.nextInt(); intb = scanner.nextInt(); System.out.println(...
分类:其他好文   时间:2014-06-07 16:27:13    阅读次数:253
projecteuler---->problem=19----Counting Sundays
You are given the following information, but you may prefer to do some research for yourself. 1 Jan 1900 was a Monday.Thirty days has September, April, June and November. All the rest have thirty...
分类:其他好文   时间:2014-06-07 13:56:52    阅读次数:166
projecteuler---->problem=21----Amicable numbers
Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a b, then a and b are an amicable pair and each of a and b...
分类:其他好文   时间:2014-06-07 13:40:53    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!