例如MySQL的端口3306 firewall-cmd --zone=public --add-port=3306/tcp --permanent 重启防火墙并查看是否生效 firewall-cmd --reload #重启firewall firewall-cmd --list-ports #查看 ...
分类:
其他好文 时间:
2021-04-12 12:43:20
阅读次数:
0
约瑟夫环 题目: 剑指 Offer 62. 圆圈中最后剩下的数字 5727. 找出游戏的获胜者 1、数学解法就是通过倒推,求出队伍长度为n时,(n=1)的下标会变成什么。 class Solution { public int lastRemaining(int n, int m) { int an ...
分类:
其他好文 时间:
2021-04-12 12:42:41
阅读次数:
0
/* typeScript 中的数据类型 boolean number string array tuple 元组类型 enum 枚举类型 any 任意类型 null 和 undefined void 类型 never 类型 */ let str: string = '你好' // str = 1 ...
分类:
其他好文 时间:
2021-04-12 12:40:46
阅读次数:
0
关于Class<T>的一点理解 运用泛型时遇到这样的问题: public <T> List<T> getForList(Class<T> clazz, String sql, Object ...args) 对这其中的Class的存在不是很理解。 之后在网上查阅资料后,看到一句话总结比较好: 单独的 ...
分类:
其他好文 时间:
2021-04-12 12:36:58
阅读次数:
0
ini文件读写 添加帮组类 using System; using System.Text; using System.IO; using System.Runtime.InteropServices; namespace IniHelperDemo { public class IniConfig ...
分类:
其他好文 时间:
2021-04-12 12:32:03
阅读次数:
0
XML文件操作 实体类 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace XMLDemo { class Student { public string St ...
分类:
其他好文 时间:
2021-04-12 12:30:15
阅读次数:
0
#运算符 a++和a--的区别 public class Demo04 { public static void main(String[] args) { //++ -- 自增自减 一元运算符 int a = 3; int b = a++;//执行完这行代码后,先给b赋值,再自增 //a++ a ...
分类:
编程语言 时间:
2021-04-12 12:29:55
阅读次数:
0
1、打印如下的三角形(可以根据输入的值确定行数,和最长的那一行有几个符号): ***** **** *** ** * import java.util.Scanner; public class TrianglePrint { public static void main(String[] arg ...
分类:
编程语言 时间:
2021-04-12 12:20:50
阅读次数:
0
statment和preparedStatement Statement使用的注意事项 statement的作用是执行一段静态的sql语句,并返回处理的结果集对象。但是statement存在一定的弊端: ①sql语句需要传递参数时,我们需要对sql语句进行拼接,这样会很麻烦,影响我们的开发效率。 ② ...
分类:
数据库 时间:
2021-04-12 12:16:21
阅读次数:
0
1. 类和对象 1.1 什么是对象 1.2 什么是面向对象 1.3 什么是类 1.4 什么是对象的属性 1.5 什么是对象的行为 行为就是对象能够干什么 1.6 类和对象的关系 1.7 类的定义 1.7.1 类的定义步骤 代码示例: 1.8 对象的使用 代码示例: 1.8.1 案例 public c ...
分类:
编程语言 时间:
2021-04-12 12:11:48
阅读次数:
0