码迷,mamicode.com
首页 >  
搜索关键字:substr    ( 2734个结果
Mysql的批量导入
package cn.enjoy; import org.junit.Test; import java.io.BufferedReader; import java.io.FileReader; import java.sql.Connection; import java.sql.DriverM ...
分类:数据库   时间:2019-07-15 01:05:32    阅读次数:128
JS学习之字符串截取函数substr()与substring()的区别
比较简单,直接上代码 ...
分类:Web程序   时间:2019-07-12 14:22:22    阅读次数:132
LeetCode--字符串
1、给定字符串s,分区s使得分区的每个子字符串都是回文。 返回s的所有可能的回文分区。例如,给定s =“aab”,返回 2、给定文件的绝对路径(Unix风格),简化它。例如,path =“/ home /”,=>“/ home”path =“/ a /./ b /../../ c /”,=>“/ c ...
分类:其他好文   时间:2019-07-10 11:14:17    阅读次数:97
CTF经典题型 md5()函数数组绕过
下面是php源码 <? include_once “flag.php”;ini_set(“display_errors”, 0);$str = strstr($_SERVER[‘REQUEST_URI’], ‘?’);$str = substr($str,1);$str = str_replace( ...
分类:编程语言   时间:2019-07-08 19:22:06    阅读次数:579
SpringCloud使用Filter过滤器实现@RequestParam参数加密
一、添加拦截器@WebFilter中的filterName首字母一定要小写!!!packagecom.xiaohang.socialcard.pre.filter;importcom.xiaohang.socialcard.pre.utils.SM4Util;importlombok.extern.slf4j.Slf4j;importjavax.servlet.*;importjavax.serv
分类:编程语言   时间:2019-07-07 20:20:58    阅读次数:190
数据结构3(串)
第3章 串 【例3-1】已知字符串:a=“an apple”,b=“other hero”,c=“her”,求: (1)concat(substr(a,1,2),b)。 (2)replace(a,substr(a,5,1),c)。 (3)index(a,c)和index(b,c)。 解: (1)返回 ...
分类:其他好文   时间:2019-07-06 19:24:14    阅读次数:198
java io流清空txt文件内容及填充文件内容
File file = new File(this.getClass().getResource("").getPath());System.out.println(file.getPath());String path=file.getPath();String filename="test1.t ...
分类:编程语言   时间:2019-07-03 17:14:42    阅读次数:1399
算法题---最长公共前缀
题目来源:https://leetcode-cn.com/problems/longest-common-prefix/ 编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 输入: ["flower","flow","flight"]输出: "fl" ...
分类:编程语言   时间:2019-06-29 14:51:50    阅读次数:138
ASP.NET Core 中使用负责均衡时获取客户端 IP
在使用负载均衡的情况下,通过 context.Connection.RemoteIpAddress 获取到的是负载均衡的 IP 地址,需要通过 X-Forwarded-For 请求头才能获取到客户端的真实 IP 。之前采用的方式是自己直接获取 X-Forwarded-For 请求头。现在改用 asp... ...
分类:Web程序   时间:2019-06-26 13:42:04    阅读次数:406
JS的字符串对象
创建字符串对象两种形式 1、var str1="hello" 堆存储 2、var str2=new String(""hello) 栈存储 编排方法:加标签 italics()——》<i> bold()——》<b> anchor()——》<a> slice() substr() substring( ...
分类:Web程序   时间:2019-06-26 01:00:55    阅读次数:157
2734条   上一页 1 ... 46 47 48 49 50 ... 274 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!