/*** * 校验密码 能匹配的组合为:数字+字母,数字+特殊字符,字母+特殊字符,数字+字母+特殊字符组合,而且不能是纯数字,纯字母,纯特殊字符 */ public static function checkPwd($pwd) { $search = '/^(?![\d]+$)(?![a-zA-Z ...
分类:
其他好文 时间:
2021-05-25 18:31:40
阅读次数:
0
源码: # include<stdio.h> int main(void){int a,i=0,sum=0;scanf("%d",&a);if(a<0) a=-a;//求负整数的while(a){sum+=(a%10);//sum存各位数之和a/=10;}printf("各位数字之和为:%d\n", ...
分类:
编程语言 时间:
2021-05-25 18:29:36
阅读次数:
0
define连接字符串 #define conn(x,y) x##y,连接x与y #define toString(x) #x,将x变成字符串 #include <stdio.h> #define conn(x,y) x##y #define toChar(x) #x int main(void) ...
分类:
其他好文 时间:
2021-05-25 18:17:24
阅读次数:
0
在复习归并排序的时候,使用到了递归,我一直以为是递归函数没写对,导致了Maximum call stack size exceeded 栈溢出,但是其实是JavaScript浮点数的自动转换的问题! function sort(arry,left,right){ if(left right){ re ...
分类:
编程语言 时间:
2021-05-25 17:48:06
阅读次数:
0
TableView 的TableColumn有文本换行的需求。 方法如下: @FXML private TableColumn nameCol; nameCol.setCellValueFactory(new PropertyValueFactory<>("name")); //姓名 初始化name ...
分类:
编程语言 时间:
2021-05-25 17:45:25
阅读次数:
0
O(logn)最长上升子序列并输出 +++ pre数组记录转移。 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1e6 ...
分类:
其他好文 时间:
2021-05-25 17:36:48
阅读次数:
0
public htmlToText(html: string) { return html .replace(/<br>/g, '') .replace(/<p>/g, '') .replace(/<\/p>/g, '') .replace(/<\s*b[^>]*>/g, '') .replace( ...
分类:
Web程序 时间:
2021-05-24 17:18:14
阅读次数:
0
const axios=require('axios') const fs = require('fs-extra'); const https=require('https') const path=require('path') function resolve (dir) { return p ...
分类:
Web程序 时间:
2021-05-24 17:11:19
阅读次数:
0
import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.springframework.core.io.Resource; import org.springframework.core ...
分类:
编程语言 时间:
2021-05-24 17:06:24
阅读次数:
0
模拟算法:打印任务 Queue来实现 队列(queue)是一种有次序的数据集合,其特征是新数据项的添加总发生在一端(通常称为“尾rear”端)而现存数据项的移除总发生在另一端(通常称为“首front”端) 问题:多人共享一台打印机,采取“先到先服务”的队列策略来执行打印任务 在这种设定下,一个首要的 ...
分类:
编程语言 时间:
2021-05-24 16:55:37
阅读次数:
0