import org.springframework.util.AntPathMatcher; import org.springframework.util.PathMatcher; import junit.framework.TestCase; public class AntPathMatc ...
分类:
编程语言 时间:
2021-06-02 10:29:46
阅读次数:
0
1、查看详细的使用 docker system df -v 2、查看docker目录大小 du -hs /var/lib/docker/ 3、清理磁盘,删除关闭的容器、无用的数据卷和网络 docker system prune docker system prune -a 清理的更彻底 ...
分类:
其他好文 时间:
2021-05-25 18:43:04
阅读次数:
0
思想和分治凸包算法很像。 把生成树的$(\sum_x,\sum_y)\(投射到平面上,我们要找到\)(x,y)$使得$x,y$最小。 可以证明,最优的$(x,y)$在凸包上。 证明可见2018国集论文。 考虑怎么求凸包,可以分治,保证当前处理的$(l,r)$是凸包上的连续一段。 先求出凸包的最左/最 ...
分类:
其他好文 时间:
2021-05-25 18:40:07
阅读次数:
0
1.描述符表与socket 每个socket都有一个描述符,指向对应socket的结构,但是对这个sockfd的读写是怎么和缓冲区以及文件连接起来的呢? 数据结构: https://www.kernel.org/doc/htmldocs/networking/API-struct-socket.ht ...
分类:
其他好文 时间:
2021-05-25 18:31:55
阅读次数:
0
简介 使用BFS算法 不知道莫名超时了 code class Solution { public: struct point{ int i; int j; point(int i_, int j_){ i = i_; j = j_; } }; void bfs(int i, int j, vecto ...
分类:
其他好文 时间:
2021-05-25 18:29:12
阅读次数:
0
先看下面的程序来售票 1 package thread; 2 3 public class Ticket { 4 public static void main(String[] args) { 5 SaleWindow saleWindow1 = new SaleWindow(); 6 SaleW ...
分类:
编程语言 时间:
2021-05-25 18:22:25
阅读次数:
0
<template> <div class="hello"> <p v-show="isShow" style="color:red;font-size:25px;">{{str1}}</p> <p v-show="!isShow" style="color:green;font-size:25px ...
分类:
其他好文 时间:
2021-05-25 18:21:49
阅读次数:
0
一、继承性的优点 减少了代码的冗余,提高了代码的复用性。 便于功能的扩展。 为之后多态性的使用,提供了前提。 二、继承性的格式 class A extends B{} A:子类、派生类、subclass B:父类、超类、基类、superclass 一旦子类A继承父类B以后,子类A中就获取了父类B中声 ...
分类:
其他好文 时间:
2021-05-25 18:20:44
阅读次数:
0
public class Point { int x; int y; public Point(int x0, int y0) { super(); this.x = x0; this.y = y0; } public Point() { super(); } public void movePoi ...
分类:
其他好文 时间:
2021-05-25 18:20:04
阅读次数:
0
一、总和 i = 1 sum = 0 while i <= 100: sum += i i += 1 print(sum) 二、奇数和 i = 1 sum = 0 while i <= 100: if i % 2 != 0: sum += i i += 1 print(sum) 三、偶数和 i = ...
分类:
编程语言 时间:
2021-05-25 18:19:09
阅读次数:
0