concat(str1,str2) 返回结果为连接参数产生的字符串。如有任何一个参数为NULL ,则返回值为 NULL。 MySQL的concat函数在连接字符串的时候,只要其中一个是NULL,那么将返回NULL concat_ws(separator,str1,str2) contcat_ws() ...
分类:
数据库 时间:
2019-10-04 15:14:21
阅读次数:
120
#include <iostream> #include <cmath> #include <cstring> using namespace std; int main() { char str1[100010],str2[100010]; cin>>str1>>str2; int a1[1000... ...
分类:
编程语言 时间:
2019-09-30 23:40:45
阅读次数:
136
1. concat函数 如果连接串中存在NULL,则返回结果为NULL: 2. concat_ws函数 concat(separator,str1,str2,...) 代表 concat with separator ,是concat()的特殊形式。第一个参数是其它参数的分隔符。分隔符的位置放在要连 ...
分类:
数据库 时间:
2019-09-28 20:22:46
阅读次数:
97
一点基础,这位博主写得很好: https://www.cnblogs.com/jamaler/p/11576754.html 简要概括一下: 1.创建方式: String str1 ="Hello World"; String str2 = new String("Hello World"); st ...
分类:
其他好文 时间:
2019-09-24 13:46:57
阅读次数:
88
//关于最长公共子串的一些简单想法 // if 求 str1 与 str2 的最长公共子串,可以将str1 每个字符与str2 每个字符建立矩阵 Grape[len1][len2] // 遍历 如果 str1[i]==str2[j] 则Grape[i][j] = 1 // 因此最长的公共子串为Gra... ...
分类:
其他好文 时间:
2019-09-21 00:48:48
阅读次数:
91
课程总结:这周讲了String直接赋值的问题,实例化String的对象,讲了String str1="hello"与String str2=new String (“hello”)的区别, 还有拼接和代替的方法。 1.写一个名为Rectangle的类表示矩形。其属性包括宽width、高height和 ...
分类:
其他好文 时间:
2019-09-20 21:19:10
阅读次数:
76
{ var str1 = "小花"; let str2 = "小明"; console.log(str1); //小花 console.log(str2); //小明 } console.log(str1); //小花 console.log(str2); //Error:str2 is not d ...
分类:
其他好文 时间:
2019-09-16 09:39:49
阅读次数:
65
// 自写逻辑,遍历所有匹配的子字符串坐标 private static void forMatchIdx(String str1, String str2) { char[] arr1 = str1.toCharArray(); char[] arr2 = str2.toCharArray(); ...
分类:
编程语言 时间:
2019-09-12 12:54:45
阅读次数:
71
# #Pytyon字符串拼接的各种方式 # #1、 % str1="hello" str2="world" str="%s %s"%(str1,str2) print(str) #2、 + str1="hello" str2="world" str=str1+str2 print(str) #3、 ... ...
分类:
其他好文 时间:
2019-09-03 16:16:13
阅读次数:
101
系统变量 文件或目录判断 整数判断 逻辑运算判断符 字符串判断 注意:在[]结构中”< “需要被转义,例如:[ "str1" /< "str2" ],在双中括号中则无需转义。 总结:使用-n在[]结构中测试,必须要用""把变量引起来,使用一个未被""的字符串,请使用 ! -z ,如果使用未被双引号变 ...
分类:
系统相关 时间:
2019-08-27 12:51:28
阅读次数:
113