Wesley13 Wesley13
4年前
java判断字符串是否为数字或中文或字母
1.判断字符串是否仅为数字:1用JAVA自带的函数public static boolean isNumeric(String str){  for (int i  str.length();i0;){      if (!Character.isDigit(str.charAt(i))){
Stella981 Stella981
4年前
CentOS7编译安装LAMP(CentOS7、httpd
安装环境说明:(软件下载地址在文末附录)1.Linux:CentOSLinuxrelease7.4.1708(Core)(最小化安装)2.Apache:httpd2.4.33.tar.bz23.MariaDB:mariadb10.2.14linuxx86\_64.tar.gz4.PHP
可莉 可莉
4年前
20个常用java代码段
下面是20个非常有用的Java程序片段,希望能对你有用。1\.字符串有整型的相互转换12StringaString.valueOf(2);//integertonumericstringint iInteger.parseInt(a);//numericstringtoanin
Wesley13 Wesley13
4年前
C++如何输入含空格的字符串
1、scanf函数(包含头文件include<stdio.h)  scanf函数一般格式为scanf(“%s”,st),但scanf默认回车和空格是输入不同组之间的间隔和结束符号,所以输入带空格,tab或者回车的字符串是不可以的。解决方法如下:1)利用格式符“%\\”它的作用为扫描字符集合。Scanf(“%\^c\”,str);其中“
Wesley13 Wesley13
4年前
Java判断中文字符串是否乱码
转自CSDN一个博主的文章,感觉很有用,转发收藏一下。importjava.util.regex.Matcher;importjava.util.regex.Pattern;publicclassChineseUtill{privatestaticbooleanisChinese
Stella981 Stella981
4年前
CentOS 7安装eclipse
1、eclipse64位下载地址https://www.eclipse.org/downloads/download.php?file/technology/epp/downloads/release/oxygen/3/eclipsejeeoxygen3linuxgtkx86_64.tar.gz2、终端进入下载目录后
Wesley13 Wesley13
4年前
lz
原文链接: lzstring面向localstorage的字符串压缩库(https://my.oschina.net/ahaoboy/blog/4696653)https://www.npmjs.com/package/lzstring(https://www.oschina.net/action/GoToLink?urlhttps%3A
Stella981 Stella981
4年前
CodeForces985F:Isomorphic Strings (字符串&hash)
题意:取出字符串Str里的两个串S,T,问对应位置的的字符在否有一一映射关系。hash:对于每个字符s‘a’‘z’,我们任意找一个i,满足Sis,(代码里用lower\_bound在区间找到最小的位置i)其对应的字符为Tit。然后我们判断这段区间里s的hash值是否等于t的hash值。不难证明26个字母都满足时对应hash相同时,才有
Stella981 Stella981
4年前
Impala常用函数索引
增加X自然天selectdays_add(now(),2)字符串转Timestampselectto\_timestamp('2019101420:00:01','yyyyMMddHH:mm:ss');注意,Impala的timestamp的标准是ISO8601 参考:https://en.wiki
wolfcode wolfcode
1年前
EasyAdmin8 - PHP8.0常用框架快速后台管理系统
EasyAdmin8在EasyAdmin的基础上更新ThinkPHP框架到8.0,PHP最低版本要求不低于8.0ThinkPHPv8.0和layuiv2.8.x的快速开发的后台管理系统。