码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
python 函数
函数 python函数不需要先单独申明,直接先定义然后调用即可。 函数定义: def function_name([arguments]):           "optionaldocumentation string"     function_suite 内嵌函数定义: def function1([arguments1]):         “optio...
分类:编程语言   时间:2015-02-04 09:29:18    阅读次数:181
leetcode.20-----------Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all va...
分类:其他好文   时间:2015-02-04 09:27:00    阅读次数:108
perl学习之:匹配修饰符/s /m
m 是将字符串作为多行处理,s是将字符串作为单行处理,如果是s在字符串中出现的\n就相当于普通字符。6.6. Matching Within Multiple Lines6.6.1. ProblemYou want to use regular expressions on a string con...
分类:其他好文   时间:2015-02-04 09:23:50    阅读次数:116
String.IsNullOrEmpty()和String.IsNullOrWhiteSpace()的区别
string.IsNullOrEmpty这个是判断字符串是否为:null或者string.Empty或者“”,但不包含空格 。如果是如"\t"或者“ ” 这样的字符就返回false了,它将会把空格的字符串返回为false,为了达到判断过滤这些功能,就要使用Trim()和Length属性帮忙,判断是否...
分类:其他好文   时间:2015-02-04 09:22:32    阅读次数:331
JAVA导出Excel封装
1、数据bean/** * Excel Bean * @author rubekid * */public class ExcelBean { private String name; private String sheetName; private St...
分类:编程语言   时间:2015-02-04 09:21:52    阅读次数:179
The maximum string content length quota (8192) has been exceeded while reading XML data
原文: The maximum string content length quota (8192) has been exceeded while reading XML data 问题场景:在我们WCF服务发布后,我们要确保服务端以及客户端的配置文件允许合适大小的传输设置。笔者在发布WCF服务时...
分类:其他好文   时间:2015-02-04 09:20:38    阅读次数:157
[LeetCode] Palindrome Partitioning II 拆分回文串之二
Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ...
分类:其他好文   时间:2015-02-04 07:05:10    阅读次数:215
java 常用汇总
1、commons.lang3.StringUtilspublicclassT_StringUtils{ publicstaticvoidmain(String[]args){ t_join(); } /**将数组以符号或其他字符串为间隔组成新的字符串*/ publicstaticvoidt_join(){ String[]str={"1","2","3","4"}; Stringresult=StringUtils.join(str,"|..
分类:编程语言   时间:2015-02-04 00:48:06    阅读次数:212
redis的PHP扩展包安装方法
试用Redis安装、php环境连接、测试Redis介绍Redis本质上一个Key/Value数据库,与Memcached类似的NoSQL型数据库,但是他的数据可以持久化的保存在磁盘上,解决了服务重启后数据不丢失的问题,他的值可以是string(字符串)、list(列表)、sets(集合)或者是ord...
分类:Web程序   时间:2015-02-04 00:35:30    阅读次数:201
ThinkPHP中:使用递归写node_merge()函数
需求描述:现有一个节点集合可以视为一个二维数组 1 array(5) { 2 [0] => array(4) { 3 ["id"] => string(1) "1" 4 ["name"] => string(5) "Admin" 5 ["title"] => string...
分类:Web程序   时间:2015-02-04 00:23:04    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!