str1="Find the key in the picture,good luck.." for i in range(256): for j in range(39): b=(ord(str1[j])^j) print bin(b) ...
分类:
编程语言 时间:
2017-08-22 13:53:19
阅读次数:
248
1、查找字符位置函数: 2、提取子字符函数(双字节) 3、替换字符串 4、查询字符串长度 5、比较字符函数 6、分割成数组函数 7、去除空格: 8、加空格函数 9、返回指定的字符或ascii 10、HTML代码有关函数 11、字符大小写转换函数 12、数据库相关函数 13、连接函数 ...
分类:
Web程序 时间:
2017-08-22 00:22:23
阅读次数:
209
#include<stdio.h> #include <string.h> int strstrcount( char *str1, char *str2 ) { char *str = str1; int c = 0; while( (str = strstr( str, str2 )) != N ...
分类:
其他好文 时间:
2017-08-19 20:01:53
阅读次数:
116
strstr(str1,str2) 函数用于判断字符串str2是否是str1的子串。如果是,则该函数返回str2在str1中首次出现的地址;否则,返回NULL。 实例: ...
分类:
其他好文 时间:
2017-08-18 21:25:59
阅读次数:
129
1、copy(a,b,c) 举个例子: str := “123456”;str1 := Copy(Str,2,3);结果就是 str1 等于 234。Copy有3个参数,第一个是你要处理的字符串,第二个是你要截取的开始位置,第3个是截取位数。当你的第3个参数大于字符长度,那么效果就是取 开始位置 后 ...
分类:
其他好文 时间:
2017-08-18 09:44:45
阅读次数:
151
指两个字串之间,有一个转成另一个所需的最少编辑操作的次数。 算法过程 ...
分类:
编程语言 时间:
2017-08-16 17:03:04
阅读次数:
134
StringBuffer sbstr=new StringBuffer("<table id='tabe>”;); String tablehtml= "<tr><td>"+str1+"</td>" + "<td>"+str2+"</td>"+"<td>"+str3+"</td></tr>"; sb ...
分类:
其他好文 时间:
2017-08-15 11:22:46
阅读次数:
117
1 字符串函数 查看字符串的ascii码: ascii(str) str为空时候返回0 select ascii("a"); 查看ascii码对应的字符: char(num) select char( num ); 拼接字符串 concat(str1 , str2 ...) select conca ...
分类:
数据库 时间:
2017-08-14 00:30:21
阅读次数:
286
反射的基石 -> Class 类(字节码)/*只要是在源程序中出现的类型,都要各自的Class实例对象,例如:int,int[],void*/如何得到各个字节码对应的实例对象(Class类型) 1.类名.class 2.对象.getClass 3.Class.forName("类名");(1.先忘内 ...
分类:
编程语言 时间:
2017-08-13 20:48:57
阅读次数:
177