ConcurrentHashMap源码解析 ConcurrentHashMap是什么? 它是对HashMap线程安全性的增强类,保证了Map对象在多线程环境下的读写的线程安全性。在使用方法上和HashMap保持一致,都是Map接口的实现类。 类结构 核心数据结构 核心数据结构和HashMap相同,都 ...
分类:
其他好文 时间:
2020-06-18 19:44:46
阅读次数:
64
ubuntu18.04中安装python虚拟环境时报错: 网上找了很久没解决,后来一想不就是没找到这个pbr的版本嘛,也不知道这是什么东西,直接安装它就得了: 再去装虚拟环境就可以了。 ...
分类:
移动开发 时间:
2020-06-18 19:17:09
阅读次数:
76
Description HostAgent fails to establish SSH Connection to RedHat EL7 hostThe error reported when the agent attempts to connect to the host matches th ...
分类:
系统相关 时间:
2020-06-18 19:16:06
阅读次数:
459
实例: 报错:Cannot read property 'itemGroupList' of undefined" 解决方法:在itemGroupList上一层判断一下父级元素 <div v-if="table2.itemCat"> <div v-for="(itemgrounp,indexgrou ...
分类:
其他好文 时间:
2020-06-18 16:36:41
阅读次数:
68
#基本使用 ##声明浏览器对象 from selenium import webdriver browser = webdriver.Chrome() browser = webdriver.Firefox() browser = webdriver.Firefox() browser = webd ...
分类:
其他好文 时间:
2020-06-18 16:05:53
阅读次数:
48
Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: arr = [ ...
分类:
其他好文 时间:
2020-06-18 13:10:04
阅读次数:
64
系统中 会遇到 一些文件名包含特殊字符或者中文名,无法正常删除 可以利用文件的inode号来删除 ls -i (可以看对文件对应的inode号) find . -inum inode号 -exec rm {} \; #删除,当然不只可以用来删除、mv等命令也行 ...
分类:
系统相关 时间:
2020-06-18 12:56:44
阅读次数:
71
有来了个新项目,idea导入之后就报错Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin 原因是新项目的配置中使用的是默认的maven配置文件和默认本地仓库地址, 改成自定义之后的就可以了,参考下图 ...
分类:
编程语言 时间:
2020-06-18 11:16:12
阅读次数:
709
显然可以直接凑左面全是左括号,右面全是右括号的情况. 然后区间翻转就用 splay 模拟好了. splay 的时候一定注意一点: 如果没有调用 find(x),就一定要手动把 x 及其祖先的节点 pushdown. code; #include <bits/stdc++.h> #define N 1 ...
分类:
其他好文 时间:
2020-06-18 10:54:30
阅读次数:
56
find_element()与find_elements()有什么区别? ...
分类:
其他好文 时间:
2020-06-18 01:44:34
阅读次数:
60