转自https://blog.csdn.net/renlonggg/article/details/80392989 apt-get update:更新安装列表apt-get upgrade:升级软件apt-get install software_name :安装软件apt-get --purge ...
分类:
其他好文 时间:
2021-04-23 12:25:24
阅读次数:
0
我的idea使用maven引入依赖没有成功,只能下载jar包 下载jar包地址: http://repo.e-iceblue.com/nexus/content/groups/public/e-iceblue/spire.xls.free/ pom.xml中配置jar所在路径 <dependency ...
分类:
其他好文 时间:
2021-04-23 12:25:08
阅读次数:
0
写在前面 由于项目中需要使用代码编辑器插件,于是找到了CodeMirror,这个插件功能十分强大,官网地址:https://codemirror.net/ 但是,当把插件集成到项目时,发现编辑器显示高度是默认的300px,这个高度显然是不友好的,所以需要将高度改为自适应。 查看官方文档说是将heig ...
分类:
其他好文 时间:
2021-04-23 12:24:16
阅读次数:
0
panic源码解读 前言 panic的作用 panic使用场景 看下实现 gopanic gorecover fatalpanic 总结 参考 panic源码解读 前言 本文是在go version go1.13.15 darwin/amd64上进行的 panic的作用 panic能够改变程序的控制 ...
分类:
其他好文 时间:
2021-04-23 12:23:51
阅读次数:
0
tarjan 模板 int low[N],dfn[N],Stack[N],belong[N]; //最小下表,时间戳,一个用数组模拟的栈 //belong[x]表示x所属的强连通分量的编号 int idx,top;//,动态时间戳,栈顶 int scc; //scc表示强连通分量的个数 bool i ...
分类:
其他好文 时间:
2021-04-23 12:23:00
阅读次数:
0
链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805073643683840 思路:最短路的变式题 dijk 中vis表示是否被当作过最小点,因为堆中已经有这个点了但是没有被当作最小点过,所有堆中可能存在多个同一个点 ...
分类:
其他好文 时间:
2021-04-23 12:22:28
阅读次数:
0
学习自:CS-Note Leetcode 题解 - 双指针 1、有序数组的Two Sum 167. 两数之和 II - 输入有序数组 题目描述: 给定一个已按照 升序排列 的整数数组 numbers ,请你从数组中找出两个数满足相加之和等于目标数 target 。 函数应该以长度为 2 的整数数组的 ...
分类:
其他好文 时间:
2021-04-23 12:22:04
阅读次数:
0
docker文档 参考docker安装文档 安装docker 1.卸载老版本 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-l ...
分类:
其他好文 时间:
2021-04-23 12:21:29
阅读次数:
0
1.selenium 基本操作 from selenium import webdriver from time import sleep #实例化一款浏览器对象 bro = webdriver.Chrome(executable_path='chromedriver.exe') #executab ...
分类:
其他好文 时间:
2021-04-23 12:20:22
阅读次数:
0
一、讲解 二、代码 import tensorflow as tf from tensorflow.python.keras import datasets, layers, optimizers, Sequential, metrics from tensorflow.python import ...
分类:
其他好文 时间:
2021-04-23 12:19:22
阅读次数:
0
1. 用Pyspark自主实现词频统计过程。 >>> s = txt.lower().split()>>> dd = {}>>> for word in s:... if word not in dd:... dd[word] = 1... else:... dd[word] = dic[word] ...
分类:
其他好文 时间:
2021-04-23 12:19:08
阅读次数:
0
考个研真的把很多东西都忘光了,,, #include <string_view> #include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; class Sampl ...
分类:
其他好文 时间:
2021-04-23 12:18:50
阅读次数:
0
>>> s = txt.lower().split()>>> dd = {}>>> for word in s:... if word not in dd:... dd[word] = 1... else:... dd[word] = dic[word] + 1...>>> ss = sorted( ...
分类:
其他好文 时间:
2021-04-23 12:18:32
阅读次数:
0
看到之前在csdn 上写的摄像头驱动总结,首先得感谢摄像头驱动这个东西 让我在读书时挣到了一笔生活费!! 现在把文章简要拷贝过来,以及去掉之前的代码然后随便扯一下文件的map吧 驱动核心: 将摄像头驱动中的yuv数据map到用户空间,便于访问。read 性能不够!! 原理是:通过mmap将内核太bu ...
分类:
其他好文 时间:
2021-04-23 12:17:55
阅读次数:
0
## 198. House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only co ...
分类:
其他好文 时间:
2021-04-23 12:11:50
阅读次数:
0
from wordcloud import WordCloud,ImageColorGeneratorimport jiebaimport numpy as npimport matplotlib.pyplot as pltfrom PIL import Image with open('西游记.t ...
分类:
其他好文 时间:
2021-04-23 12:11:32
阅读次数:
0
题目描述 输入输出描述 样例 题目大意 对于一个kmp匹配的问题,Chenjb给出了错误的贪心做法,求在某一特定需要匹配的字符串时,他的贪心代码可不可以通过所有样例。 分析 首先要读懂它的贪心算法是啥意思,之后再把它和kmp算法进行比较,把不同的情况判断一下就行。 它的贪心就是从前往后开始遍历,但是 ...
分类:
其他好文 时间:
2021-04-23 12:11:15
阅读次数:
0