题目: 解答: 1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode() : val( ...
分类:
其他好文 时间:
2020-05-02 15:18:35
阅读次数:
53
# coding:utf8 class Node(): def __init__(self, _item): self.item = _item self.left = None self.right = None class Tree(): def __init__(self): self.roo ...
分类:
其他好文 时间:
2020-05-02 14:51:38
阅读次数:
63
c++中的STL 中的优先队列 参照网址: https://www.cnblogs.com/xzxl/p/7266404.html 代码示例 https://www.cnblogs.com/zhouzhihao/p/10974594.html 优先队列 //date:2020.5.2 #includ ...
分类:
编程语言 时间:
2020-05-02 10:08:23
阅读次数:
51
前一段时间看到交流群中有人需要关键点标注软件,但是笔者并没有找到特别适合的软件,所以想自己写一个简单的软件。笔者代码借鉴了BBox Label Tool的代码,将检测部分的代码改成了关键点的代码。 列举一下这个软件的优点: 代码量小,只有400多行,只需要掌握基础的tkinter就很容易看懂。 占用 ...
分类:
其他好文 时间:
2020-05-02 10:03:43
阅读次数:
50
``` org.springframework.boot spring-boot-starter-actuator ``` ``` # 显示详情 management: endpoint: health: show-details: always endpoints: web: exposure: ... ...
分类:
其他好文 时间:
2020-05-01 20:34:51
阅读次数:
86
转自:https://www.cnblogs.com/jing99/p/11696192.html Zuul是spring cloud中的微服务网关。网关: 是一个网络整体系统中的前置门户入口。请求首先通过网关,进行路径的路由,定位到具体的服务节点上。 Zuul是一个微服务网关,首先是一个微服务。也 ...
分类:
编程语言 时间:
2020-05-01 18:40:53
阅读次数:
73
1. package LH; public class Point { int x; int y; Point() { } Point(int x0, int y0) { this.x = x0; this.y= y0; } void movePoint(int dx,int dy) { this. ...
分类:
其他好文 时间:
2020-04-30 15:47:53
阅读次数:
55
一、简介 集群中Cluster Singleton 集群中有而只一个单例,可应用于集群全局调控,单一运算决策,中央命名服务或中央路由等应用场景 二、依赖 dependencies { compile group: 'com.typesafe.akka', name: 'akka-cluster-ty ...
分类:
其他好文 时间:
2020-04-30 13:52:51
阅读次数:
73
1、定义一个点类Point,包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point(intx0,y0),以及一个movePoint(int dx,int dy)方法实现点的位置移动,创建两个Point对象p1、p2,分别调用movePoint方法后,打印p1和p2的坐标 pa ...
分类:
其他好文 时间:
2020-04-30 13:37:12
阅读次数:
50
1、定义一个点类Point,包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point(intx0,y0),以及一个movePoint(int dx,int dy)方法实现点的位置移动,创建两个Point对象p1、p2,分别调用movePoint方法后,打印p1和p2的坐标。[必 ...
分类:
其他好文 时间:
2020-04-30 13:34:32
阅读次数:
44