链接 Luogu P4172 题意 给定一个 \(n\) 个点 \(m\) 条边的图和 \(q\) 次操作,每次操作分为以下两种: 1 u v:查询 \(u\) 到 \(v\) 的一条路径使得边权最大的边的权值最小。 2 u v:将边 \((u,v)\) 删去。 \(\texttt{Data Ran ...
分类:
其他好文 时间:
2020-06-07 16:32:40
阅读次数:
45
#!/bin/bash #docker安装前提条件:1,centos版本需要7或更高版本,2、centos-extra仓库需要处于启用状态 #建议:使用overlay2存储驱动 #echo "docker安装前提条件:1,centos版本需要7或更高版本,2、centos-extra仓库需要处于启用 ...
分类:
其他好文 时间:
2020-06-07 14:32:20
阅读次数:
151
在Spring框架里面,可以通过以下几种方式获取到当前登录用户的详细信息: 1. 在Bean中获取用户信息 Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); if (!(au ...
分类:
编程语言 时间:
2020-06-07 13:17:39
阅读次数:
87
import json from Db import Db db = Db() ''' 参考配置文件 { "file": "test.json", "path": "data", "table": "tk_bill", "comitcount": 50, "map": { "trade_id": " ...
分类:
数据库 时间:
2020-06-06 18:16:37
阅读次数:
221
1、定义分页类 class Pagination(object): ''' 分页类 参数: per_page:每页数量 total_data:总数目 cur_page:当前页。 用法:(flask,html中自定义css) py: page = int(request.args.get("page" ...
分类:
Web程序 时间:
2020-06-06 01:06:26
阅读次数:
65
1066 Root of AVL Tree (25分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node diff ...
分类:
其他好文 时间:
2020-06-05 23:18:28
阅读次数:
73
#简介 IBM MQ(IBM Message Queue)是IBM的一款商业消息中间产品,适用于分布式计算环境或异构系统之中。 消息队列技术是分布式应用间交换信息的一种技术。消息队列可驻留在内存或磁盘上,队列存储消息直到它们被应用程序读走。 #安装 1、官网下载地址:https://www.ibm. ...
分类:
Web程序 时间:
2020-06-04 21:28:12
阅读次数:
94
原文链接 一、检查 SSH key 是否存在 在终端输入如下代码: ls -al ~/.ssh 如果没有,终端显示如下: No such file or directory 如果有,终端显示如下: ? ~ ls -al ~/.ssh total 24 drwx 5 ant staff 160 1 1 ...
分类:
系统相关 时间:
2020-06-04 19:45:19
阅读次数:
90
Django 日志 Django 使用Python 内建的logging 模块打印日志,Python 的logging 配置由四个部分组成: 记录? —— Logger 处理程序 —— Handler 过滤? —— Filter 格式化 —— Formatter 1.记录? —— Logger Lo ...
分类:
其他好文 时间:
2020-06-04 16:53:57
阅读次数:
76