/*** * 校验密码 能匹配的组合为:数字+字母,数字+特殊字符,字母+特殊字符,数字+字母+特殊字符组合,而且不能是纯数字,纯字母,纯特殊字符 */ public static function checkPwd($pwd) { $search = '/^(?![\d]+$)(?![a-zA-Z ...
分类:
其他好文 时间:
2021-05-25 18:31:40
阅读次数:
0
设计模式——单例模式 概念: 单例模式是设计模式中很常见的一种模式,各种框架,系统中都有应用。 其定义是单例对象的类只能允许一个实例存在。在许多时候整个系统只需要拥有一个全局对象,这样有利于我们系统系统整体的行为。 实现主要是以下两个步骤: 将该类的构造方法定义为私有方法,这样其他处的代码就无法通过 ...
分类:
其他好文 时间:
2021-05-25 18:30:08
阅读次数:
0
public class ForDemo2 { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i+ "*" ...
分类:
其他好文 时间:
2021-05-25 17:50:06
阅读次数:
0
常见的虚拟化产品有4款:分别是VMware、HyherV、Xen、KVM 1.VMware VMware是最早的X86 平台上的虚拟化引擎,1994年就发布了第一款产品,经过十几年的发展和市场检验,产品成熟、稳定、兼容性也不错。VMware的产品线非常全面,不仅有虚拟化的解决方案,在IaaS、Saa ...
分类:
其他好文 时间:
2021-05-24 17:04:13
阅读次数:
0
import java.util.LinkedList; import java.util.Scanner; class TreeNode{ char val; TreeNode leftchild; TreeNode rightchild; int flag;//用于后续非递归 } public ...
分类:
其他好文 时间:
2021-05-24 15:37:05
阅读次数:
0
<?php class A{ function index (){ echo '我是A的index'; } } class B{ function index (){ echo '我是B的index'; } } class C{ function index (){ echo '我是C的index' ...
分类:
Web程序 时间:
2021-05-24 14:24:42
阅读次数:
0
一、C++的浅拷贝与深拷贝对比Java的浅克隆与深克隆案例 C++部分 #include<iostream> #include<string> using namespace std; class Email { private: string title; /*这里是一个指针,当经行拷贝时,会产生 ...
分类:
其他好文 时间:
2021-05-24 14:17:06
阅读次数:
0
package cn.rushangw.lesson01;import sun.awt.WindowClosingListener;import java.awt.*;import java.awt.event.WindowAdapter;import java.awt.event.WindowEv ...
分类:
其他好文 时间:
2021-05-24 12:52:46
阅读次数:
0
MSDN中有一句话:One of the primary architectural philosophies used in building WPF was a preference for properties over methods or Depenevents. 这句话的意思就是WPF的 ...
分类:
其他好文 时间:
2021-05-24 12:44:16
阅读次数:
0
下面的是方法 相关代码来自网络 1 using System; 2 using System.IO; 3 using System.Text; 4 5 /// <summary> 6 /// FileEncoding 的摘要说明 7 /// </summary> 8 namespace FileEn ...
分类:
其他好文 时间:
2021-05-24 12:10:07
阅读次数:
0