String str3 = "helloworld"; System.out.println(str3.substring(3)); System.out.println(str3.substring(2, 8)); String[] arr = str3.split("ow"); for (Str ...
分类:
其他好文 时间:
2020-07-13 18:43:15
阅读次数:
62
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. Example 1: Input: nums ...
分类:
其他好文 时间:
2020-07-13 09:57:03
阅读次数:
63
**模板引擎的作用:**需要动态渲染大量html的时候,用js代码手动写入,不仅会失去代码高亮显示,而且在js代码中加入太多的html标签字符串会导致代码阅读的复杂度。此时就使用模板引擎 选择模板引擎的准则: 模板引擎的性能: 要快 跟据你的项目,看模板引擎服务端和客户端的兼容情况 希望语法抽象还是 ...
分类:
其他好文 时间:
2020-07-13 09:35:48
阅读次数:
66
推荐使用条件编译,少用条件判断 // @/utils/EPlatform.ts/**枚举EPlatform*/ export enum EPlatform { /**App*/ AppPlus = 'APP-PLUS', /**App nvue*/ AppPlusNvue = 'APP-PLUS-N ...
分类:
微信 时间:
2020-07-12 18:43:17
阅读次数:
666
一、条件语句 1、if选择语句: 语法: if 表达式: 语法 2、if...else语句 语法:(如果表达式为真则执行语句块1,否则执行语句块2) if 表达式: 语句块1 else: 语句块2 3、if..elif..else语句 语法: if 表达式1: 语句块1 elif 表达式2: 语句块 ...
分类:
编程语言 时间:
2020-07-12 18:33:56
阅读次数:
86
unrated 呜呜呜 #A 直接全输出1完事 #include <bits/stdc++.h> #define all(n) (n).begin(), (n).end() #define se second #define fi first #define pb push_back #define ...
分类:
其他好文 时间:
2020-07-12 12:42:52
阅读次数:
57
Quagga BGP and exabgp: work together for BGP blackhole implementation In our test case we will deploy two machines: 10.0.3.114 for exabgp (it announce ...
分类:
其他好文 时间:
2020-07-12 12:21:39
阅读次数:
70
switch 支持的数据类型 C: short int long char (unsigned,signed) switch(expression) case 1 : statement1;break; case 2 : statement2;break; case 3 : statement3;b ...
分类:
编程语言 时间:
2020-07-11 23:08:41
阅读次数:
77
java流程控制 1.用户交互Scanner(Scanner对象) 基本语法中没有实现程序和人的交互,但是java给我们提供了这样一个工具类,我们可以获取用户的输入。java.util.Scanner是java5的新特征,我们可以通过Scanner类来获取用户的输入 基本语法: 通过Scanner类 ...
分类:
编程语言 时间:
2020-07-11 19:17:26
阅读次数:
46
package com.bi import java.sql.{Connection, DriverManager, Timestamp} import java.util.Calendar /** * Created by xxx on 2017/6/28. */ object MySqlConn ...
分类:
数据库 时间:
2020-07-10 23:50:33
阅读次数:
64