``` class MyStack { public: /** Initialize your data structure here. */ MyStack() { } /** Push element x onto stack. */ void push(int x) { dataqueue.p... ...
分类:
其他好文 时间:
2019-12-18 13:00:59
阅读次数:
81
由于工作关系,需要用到港澳台的身份证校验。总结一下 rex1= /[A-Z]{1,2}[0-9]{6}([0-9A])/ ; //香港身份证 rex2= /^[1|5|7][0-9]{6}[0?9Aa][0?9Aa]/; //澳门身份证 rex3= /[A-Z][0-9]{9}/; //台湾身份证 ...
分类:
其他好文 时间:
2019-12-18 12:50:43
阅读次数:
128
C++ Set运用实例 6 5 4 3 2 14 already exists1 2 3 4 5 61 element(s) removed3 4 6请按任意键继续. . . 代码参考:C++标准库(第2版) ...
分类:
编程语言 时间:
2019-12-17 20:39:42
阅读次数:
100
search2015_cpitem 第一步:先了解需要用到的工具 1. requests 库: 用来获取网页内容 2. BeautifulSoup 库: 用来解析网页,提取想要的内容 3. selenium 库 :Selenium测试直接运行在浏览器中,就像真正的用户在操作一样 第二步:代码解释 用 ...
分类:
Web程序 时间:
2019-12-17 20:21:08
阅读次数:
131
我们比较常见的就是基于角色的访问控制,用户通过角色与权限进行关联。简单地说,一个用户拥有多个角色,一个角色拥有多个权限。这样,就构造成“用户 角色 权限”的授权模型。在这种模型中,用户与角色之间、角色与权限之间,通常都是多对多的关系。如下图: 基于这个,得先了解角色到底是什么?我们可以理解它为一定数 ...
分类:
其他好文 时间:
2019-12-17 18:14:23
阅读次数:
94
Problem Statement Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You m ...
分类:
其他好文 时间:
2019-12-17 13:31:47
阅读次数:
98
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2019-12-17 13:28:04
阅读次数:
80
BEM 是 Block(块) Element(元素) Modifier(修饰器)的简称 使用BEM规范来命名CSS,组织HTML中选择器的结构,利于CSS代码的维护,使得代码结构更清晰(弊端主要是名字会稍长) 官方地址 点击查看 在选择器中,由以下三种符号来表示扩展的关系: -中划线 :仅作为连字符 ...
分类:
其他好文 时间:
2019-12-17 13:13:28
阅读次数:
115
1.组件使用 new Vue({ el, // 要绑定的 DOM element template, // 要解析的模板,可以是 #id, HTML 或某個 DOM element data, // 要绑定的数据 computed, // 依赖于别的数据计算出来的数据, name = firstNa ...
分类:
其他好文 时间:
2019-12-16 22:39:36
阅读次数:
112