入门客AI创业平台(我带你入门,你带我飞行)
博客笔记
26
2016-09
删除一个StringBuilder的最后一个字符? 2016-09-26
When you have to loop through a collection and make a string of each data separated by a delimiter, you always end up with an extra delimiter at the end, e.g. for(String serverId : serverIds) { sb.append(s
24
2016-06
php 变量与类型相关扩展——类/对象 2016-06-24
1 、__autoload 可以在php文件中定义这个魔术方法(注意不是在类中定义,是在php脚本中,类外部),当调用一个不存在的类时,会触发此方法,可以实现

			
				字符串的常用方法—拼接字符串
字符串的常用方法—拼接字符串 2015-09-27
stringWithFormat 一般来说,我们习惯了使用stringWithFormat来拼接字符串,如下: int main(int argc, const char * argv[]) { NSString *name = @"jack"; int age = 20; NSString
08
2015-06
Android中几种字符串拼接的效率比较 2015-06-08
废话不多说,直接上代码 long n = 10000; long start1 = System.currentTimeMillis(); String s1 = new String("hello"); for (long i = 0; i < n; i++) { s1 += "拼接--"; }
 alt=
Android中字符串拆分或拼接 2016-05-24
在android开发中我们往往有时候需要对一些字符串做一些处理,来达到自己想要的效果,下面介绍几种方法: Pattern pattern = Pattern.compile("(http://|https://
12
2016-08
PHP代码打包---phar 2016-08-12
php中的phar类似于java中的打包文件jar,即将一个文件夹中的一类文件压缩。 功能:Phar可以将一组PHP文件进行打包,还可以创建默认执行的stub(或者
10
2017-01
Yii对不同控制器下的视图进行渲染 2017-01-10
关于不同Controller下使用不同样式的布局文件,比如有“用户”、“商品信息”、“商品列表”、“后台管理”四个子模块,每个模块的标题栏、菜单栏都不同
10
2008-04
C#中List用法 2008-04-10
How to find objects in Generics with List.Find() method I"ve been looking for help on how to find objects in Generics with List.Find() method .... and ... take a look what I have found.In the fol
04
2016-05
PHP——时间格式转换 2016-05-04
准备函数:strtotime(String) php中将日期转变为时间戳的函数。 参数:日期字符串 返回:时间戳 示例: 输出结果:1462312800 在进行日期格式转换时,
26
2017-09
java中size(),length和length()三者用法区别 2017-09-26
size()是获取泛型集合的长度 length是获取字符串的长度 length()是获取数组的长度。 他们的区别就是这么简单,获取不同的属性的长度的方法。在用的时