很明显的拓扑 推一波: https://www.luogu.com.cn/blog/Hehe-0/p2017-dizzy-cows-g 1 #include<bits/stdc++.h> 2 3 4 using namespace std; 5 const int mmm=1e6+1; 6 7 in ...
分类:
其他好文 时间:
2021-05-23 23:01:52
阅读次数:
0
for images, labels in train_data: for images, labels in train_data: img = images[0] img = img.numpy() img = np.transpose(img, (1, 2, 0)) plt.imshow(im ...
分类:
其他好文 时间:
2021-05-23 23:01:36
阅读次数:
0
下载、安装、服务启动/停止 下载redis压缩包 安装 压缩包解压到指定的路径 使用cmd,不要使用powershell 打开cmd,并进入到该路径,并输入 redis-server redis.windows.conf 关掉当前cmd窗口,重新打开cmd,再次进入到该路径,并输入 redis-se ...
分类:
其他好文 时间:
2021-05-23 23:01:20
阅读次数:
0
Tarjan之前做一道leetcode的时候刷过,这次在OJ上找找感觉。 将整个图所有的强连通分量理出来,将整个图的强连通分量看成一个点,然后观察出度为0(这是一个DAG上的问题),分类讨论即可解决。 其实感觉这道题利用Kosaraju也就是算法导论上关于DFS应用于求解强连通分量的方法更合适一些。 ...
分类:
其他好文 时间:
2021-05-23 23:00:16
阅读次数:
0
ssh基于key验证 1,在客户端生成公钥私钥对并将公钥拷到要连接的服务器上,验证是否成功 [root@localhost ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the k ...
分类:
其他好文 时间:
2021-05-23 22:59:40
阅读次数:
0
目录 1.vcenter 6.7安装要求;2.vcenter第一阶段安装失败,提示:"Unable to proceed with stage 2 of the deployment process. Click close to exit the installer.”3.无DNS下部署安装vce ...
分类:
其他好文 时间:
2021-05-23 22:59:26
阅读次数:
0
##General English:6-Elementary ###1 Grammar Reported questions - past tense Reported questions – past tense Statements can be reported in either the p ...
分类:
其他好文 时间:
2021-05-23 22:58:08
阅读次数:
0
##General English:6-Elementary ###1 Vocabulary Metting words agenda,items,new hires,short time,for personal reasons,visitors,clean up,continue,update ...
分类:
其他好文 时间:
2021-05-23 22:57:55
阅读次数:
0
1.前端实现socketIO跨域: (1)vueconfig.js配置 const webpack = require("webpack"); module.exports = { configureWebpack: { resolve: { alias: { 'assets': "@/assets ...
分类:
其他好文 时间:
2021-05-23 22:57:37
阅读次数:
0
一、新建新项目,选择C#模板 创建空项目,添加核心引用mvc及Web API 添加Repository文件夹和Common文件夹,项目右键-添加-新建文件夹 管理NuGet添加引用,添加Newtonsoft.Json、EntityFramework、 ...
分类:
其他好文 时间:
2021-05-23 22:57:18
阅读次数:
0
一、需求分析 需求 :通过输入关键字对肯德基餐厅信息进行爬取 分析 : 1、如图所示,搜索肯德基网站的首页,会发现最下面的功能栏中有餐厅查询一栏,点击进入会出现图2中的页面,我们可以在搜索栏中输入想要查询信息的城市名称,即可出现该城市的KFC餐厅相关信息 2、比如说,我们输入北京进行搜素,该页面便会 ...
分类:
其他好文 时间:
2021-05-23 22:55:55
阅读次数:
0
1、设置超链接 # 设置超链接 sheet.cell(2,2).hyperlink = "www.baidu.com" 2.cell的其它属性 # cell 的其它属性 sheet.cell(row = 1,column = 2).column_letter sheet.cell(row = 1,c ...
分类:
其他好文 时间:
2021-05-23 22:55:32
阅读次数:
0
Numpy使用Matplotlib实现可视化绘图 可以直接将Numpy的数组传给Matplotlib实现可视化绘图: 曲线图 饼图 柱状图 直方图 1. 绘制正弦曲线 2. 绘制饼图 3. 柱状图 4. 直方图 ...
分类:
其他好文 时间:
2021-05-23 22:55:09
阅读次数:
0
1. mount namespace mount namespace 通过隔离文件系统挂载点对隔离文件系统提供支持。使用 unshare 构造 mount namespace 如下: root@chunqiu:~/chunqiu/docker/mount# dd if=/dev/zero bs=1M ...
分类:
其他好文 时间:
2021-05-23 22:54:53
阅读次数:
0
类型转换 `低 高` `byte,short,char -> int -> long -> float -> double` 强制类型转换 (高 低) 自动类型转换(低 高) 注意点: 不能进行布尔值的转换 不能把对象类型转换为不相干的类型 在把高容量转换为低容量的时候,强制转换 转换的时候可能存在 ...
分类:
其他好文 时间:
2021-05-23 22:54:36
阅读次数:
0
动态规划——1143. 最长公共子序列 题目: 思路: dp数组的定义:二维dp数组,dp[i] [j]代表在text1[0, ... , i-1]和text2[0, ... , j-1]时,两个字符串的最长公共子序列的长度。 base_case:dp[0] [j] = dp[i] [0] =0 状 ...
分类:
其他好文 时间:
2021-05-20 18:01:14
阅读次数:
0
大家知道在服务器上上传下载文件有很多种方案比如最著名的ftp协议,或者安装lrzsz,这款工具比ftp服务安装配置要简单很多,今天我主要介绍ftp服务在centos7下的安装配置,首先来回顾一下ftp服务的两种工作模式: 一、ftp工作模式 ftp协议是tcp协议,有两个端口可以控制: tcp 20 ...
分类:
其他好文 时间:
2021-05-20 17:55:19
阅读次数:
0