码迷,mamicode.com
首页 >  
搜索关键字:string 查找替换    ( 95834个结果
Java正则表达式
一、概念 正则表达式是一种文本处理工具,通常用来检索、替换某个符合规则或者模式的文本。 二、字符串中的使用 1.通过String的matches()方法可以验证一个字符串是否匹配某个正则表达式(返回值,boolean),常用于检查某个字符串是否符合特定规则。 2.split()方法可以将字符串从正则 ...
分类:编程语言   时间:2021-06-05 17:43:19    阅读次数:0
给DataGrid列头绑定时间
WPF public void DataGridBinDingTime(){ List<string> times = new List<string>(); string time = _startTime.SelectedValue.ToString(); string[] arr = time ...
分类:其他好文   时间:2021-06-05 17:34:23    阅读次数:0
类对象支持比较操作
一、int、string、list这些基本类型的大小比较都是基于如下方法实现:__lt__;__gt__;__le__;__ge__;__eq__;__nq__,同理,类要实现比较功能需要实现这些方法 二、使用装饰器functools.total_ordering可以简化上诉实现的方法 三、实例: ...
分类:其他好文   时间:2021-06-04 19:54:04    阅读次数:0
在netfarmerwork3.5版本的winform下执行string串中的代码
namespace TestQuestionaire { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void bt_ok_Click(object sender, Eve ...
分类:Windows程序   时间:2021-06-04 19:41:14    阅读次数:0
皮亚诺曲线距离
思路:把每一个k阶看成一个3*3的网格,计算出点到每层(0,0)的距离,递归求出下一阶n-1的距离。 #include"stdio.h" #include"math.h" #include"string.h" #include"iostream" #include"algorithm" using ...
分类:其他好文   时间:2021-06-04 19:40:06    阅读次数:0
memset
1、头文件<string.h> 2、函数原型void *memset(void *str, int c, size_t n) 3、功能:复制字符 c(一个无符号字符)到参数 str 所指向的字符串的前 n 个字符 链接:C 库函数 – memset() | 菜鸟教程 (runoob.com) ...
分类:其他好文   时间:2021-06-04 19:26:42    阅读次数:0
@NotEmpty、@NotBlank、@NotNull三种注解的区别
@NotEmpty 用在集合类上面加了@NotEmpty的String类、Collection、Map、数组,是不能为null或者长度为0的(String Collection Map的isEmpty()方法)@NotBlank只用于String,不能为null且trim()之后size>0@Not ...
分类:其他好文   时间:2021-06-04 19:22:27    阅读次数:0
Hello,World
HelloWorld 随便新建一个文件夹,存放代码 新建一个java文件 。 文件后缀名为.java 。Hello.java 。【注意】系统可能没有显示文件后缀名,我们需要手动 编写代码 public class Hello{ public static void main (String[] ar ...
分类:其他好文   时间:2021-06-04 19:12:47    阅读次数:0
GORM如何获取查询对象的属性
package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "time" ) type User struct { ID int Name string CreatedTime time.Time } func main() { ...
分类:其他好文   时间:2021-06-04 19:06:12    阅读次数:0
IDEA启动报错
IDEA 启动项目报错: Failed to start connector [Connector[HTTP/1.1-9502]] 原因: 端口被占用 查进出: netstat -ano|findstr 9502 杀进程:taskkill /pid 2640 /f ...
分类:其他好文   时间:2021-06-04 19:02:07    阅读次数:0
95834条   上一页 1 ... 27 28 29 30 31 ... 9584 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!