打印三角形 public class TriangleDemo { public static void main(String[] args) { for (int j = 1; j <= 5; j++) { for (int i = 5; i >= j; i--) { System.out.pr ...
分类:
编程语言 时间:
2021-06-30 18:13:09
阅读次数:
0
里氏替换原则: 定义1:如果对每一个类型为 T1的对象 o1,都有类型为 T2 的对象o2,使得以 T1定义的所有程序 P 在所有的对象 o1 都代换成 o2 时,程序 P 的行为没有发生变化,那么类型 T2 是类型 T1 的子类型。 定义2:所有引用基类的地方必须能透明地使用其子类的对象。 问题由 ...
分类:
其他好文 时间:
2021-06-30 18:10:40
阅读次数:
0
简单工厂模式 Shape.java public interface Shape { void draw(); } Circle.java public class Circle implements Shape{ @Override public void draw() { System.out. ...
分类:
编程语言 时间:
2021-06-30 18:01:11
阅读次数:
0
1. 登录github并创建一个仓库 2. 安装git客户端 2.1 下载git 官网:git-scm.com/download/ 镜像:https://npm.taobao.org/mirrors/git-for-windows/?utm_source=qq&utm_medium=social&u ...
分类:
Web程序 时间:
2021-06-30 18:00:40
阅读次数:
0
vite2下载后npm 启动报错 背景: npm = 7.14.0 node.js = 16.0.0 报错信息如下: up to date in 1sPS D:\webdemo\vite\vite-project> npm run dev > dev> vite node:events:342 th ...
分类:
其他好文 时间:
2021-06-30 17:54:20
阅读次数:
0
转自:https://www.cnblogs.com/liaojie970/p/9396334.html springboot 针对jackson是自动化配置的,如果需要修改,有两种方式: 方式一:通过application.yml 配置属性说明:## spring.jackson.date-for ...
分类:
编程语言 时间:
2021-06-30 17:38:36
阅读次数:
0
链表核心要素:每个节点由数据域和指针域组成,指针域指向下一个节点的内存地址。 代码实现: 定义结构体 typedef struct Linknode { int data;//节点的数据域 Linknode* next;//节点的指针域 }_Linknode,Linklist;//数据域,指针域 初 ...
分类:
其他好文 时间:
2021-06-30 17:33:30
阅读次数:
0
乱码问题 测试步骤: 1、我们可以在首页编写一个提交的表单 <form action="/e/t" method="post"> <input type="text" name="name"> <input type="submit"> </form> ? 2、后台编写对应的处理类 @Control ...
分类:
其他好文 时间:
2021-06-30 17:32:30
阅读次数:
0
.NET代码保护软件.NET Reactor更新至v6.7.0.0版本,为 Linux 和 OSX(.NET Standard 2.x、.NET Core 3.x、.NET 5)添加了“NecroBit”保护支持 ,欢迎下载体验。 ...
分类:
Web程序 时间:
2021-06-29 16:12:28
阅读次数:
0
二分 求一个序列的最长上升子序列个数。 本程序采用边读边处理 + 二分法。 ll f[maxn], ans = 1; //注意答案个数初始化为1 int main() { ll n = read(); for (int i = 1; i <= n; ++i) { int x = read(); if ...
分类:
其他好文 时间:
2021-06-29 15:59:12
阅读次数:
0