码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果)
从Racket入门函数式编程
一直想学学LISP,今天总算开了个头。现在我学习LISP不是为了马上能够用于实际项目的应用,而是为了学习一下函数式的思维方式,能够更加深入的了解计算的本质,能够更好的用C++, Java, Python等编写程序。更何况,这些主流语言都逐渐增加了函数式编程的特征,C++,Java现在都引入了 Lambda 表达式。如果能够系统学习一下LISP,相信对自己以后掌握这些语言的新特新特征,对自己写JavaScript、Python,对自己了解闭包、高阶函数、Lambda表达式都会有很大帮助。言归正传,首先推荐三个...
分类:其他好文   时间:2014-05-18 16:01:45    阅读次数:530
android 请求网络异步加载
/** * 封装ProecssDialog对话框 * */ public class LoadDialog extends ProgressDialog { private String title = "进度对话框"; private String message = "加载数据中...."; public LoadDialog(Context context, int theme)...
分类:移动开发   时间:2014-05-18 15:42:07    阅读次数:314
Java学习笔记_19_String类
19.String类: 1>String类的构造方法: · 利用字符串构造一个字符串对象: String str = “HelloWorld”; 2>字符串对象操作: · charAt() :返回的是index+1位置的字符。 · equals和equalsIgnoreCase方法:...
分类:编程语言   时间:2014-05-18 15:30:44    阅读次数:372
[Python]webservice 学习(1) -- 简单服务和调用
由于项目中需要用到webservice来做接口,于是花点时间先做知识储备。 开始的时候觉着这个webservice就是一个http请求啊,服务端监听,客户端发送xml报文,然后解析下发送了什么内容,返回响应的数据。 这是百度百科对webservice的定义,一般使用wsdl来描述服务。 后来我的误区就是 wsdl的xml  和 用http 请求组成的xml也就是用soap来请求webserv...
分类:编程语言   时间:2014-05-18 13:56:19    阅读次数:410
python基础教程_学习笔记5:字符串
字符串 基本字符串操作 字符串也是序列,因此序列的基本操作(索引、分片、连接、乘法、长度、求最大值和最小值、成员资格)对字符串同样适用: 索引 >>> 'a_string'[0] 'a' 长度 >>> len('a_string') 8 求最大值 >>> max('a_string') 't' 求最小值 >>> min('a_string') '_' 乘法 >>> ...
分类:编程语言   时间:2014-05-18 10:50:15    阅读次数:325
LeetCode: Substring with Concatenation of All Words [029]
【题目】 You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without any intervening characters. For example, given: S:...
分类:其他好文   时间:2014-05-18 08:31:48    阅读次数:228
[Python]webservice学习(2) --自己写soap消息请求服务
上文中webservice学习(1) ,使用soaplib建立了一个超简单的webservice服务,也是用suds调用成功了,那如果想使用http包自己组成一个soap消息来调用接口怎么办呢? 这个时候我们就想到使用wsdl这个文件了,我看了些wsdl的文档,也参照这其他人使用java,php等语言实现的soap消息调用的格式来写,但是怎么调试都没成功。。 就是说他总是会返回500或...
分类:编程语言   时间:2014-05-18 08:10:15    阅读次数:354
Java学习笔记_18_字符串、包装类、原始数据类剪得转换
18. 字符串、包装类、原始数据类剪得转换:  各个转换如下:  1>String 转换成Integer:   Integer integer = new Integer(“string”);或   Integer Integer = Integer.valueOf(String);   注:String必须是数字字符串,如:”1232“。  2>Integer 转换成String:...
分类:编程语言   时间:2014-05-18 07:40:29    阅读次数:240
LeetCode:Reverse Words in a String
题目: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". Clarification: What constitutes a word? A sequence of non-spa...
分类:其他好文   时间:2014-05-18 04:12:07    阅读次数:198
python中lambda的另类使用
Lambda挺强大,有兴趣的人看下关于lambda的理论,就清楚邱奇编码的实现了。 带if/else: ( lambda x, y: x if x 科里化: ( lambda x: ( lambda y: ( lambda z: x + y + z )( 1 ) )( 2 ) )( 3 ) 递归: func = lambda n: 1 if n == 0 e...
分类:编程语言   时间:2014-05-18 03:48:34    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!