第一轮: 方法1:求长度,减去n得到被删除节点的前一个节点,直接跨越链接。若num=0则删除的是首节点 # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # s ...
分类:
编程语言 时间:
2021-06-02 20:11:51
阅读次数:
0
初识spring security 1.spring security是什么? spring security 是spring家族中一个安全管理框架。 2.spring security的作用是什么? 用户认证:你是谁?不是我们的用户还想登录? 授权:你的角色是什么?不同的角色对应不同的权限。哦,是 ...
分类:
编程语言 时间:
2021-06-02 20:05:26
阅读次数:
0
什么是ddt:ddt是ddt+unittest来进行数据处理的第三方库装饰器:会在你的函数运行之前运行,不会改变代码结构一般进行接口测试时,每个接口的传参都不止一种情况,一般会考虑正向、逆向等多种组合。所以在测试一个接口时通常会编写多条case,而这些case除了传参不同外,其实并没什么区别。这个时 ...
分类:
其他好文 时间:
2021-06-02 19:52:08
阅读次数:
0
Bad habits : Putting NOLOCK everywhere [See an index of all bad habits / best practices posts] I went through the archive above, and was quite surpris ...
分类:
其他好文 时间:
2021-06-02 19:46:42
阅读次数:
0
v-for里面数据层次太多,或者套的组件层级太多, 数据变了,页面没有重新渲染,需手动强制刷新。 解决方法:运用 this.$forceUpdate()强制刷新 迫使 Vue 实例重新渲染。注意它仅仅影响实例本身和插入插槽内容的子组件,而不是所有子组件。 vue强制重新渲染四种方案对比 前言 Vue ...
分类:
其他好文 时间:
2021-06-02 19:42:45
阅读次数:
0
rem布局 em是什么 em是个大小的单位 其他大小单位有 px em是相对于父元素的字体大小 例如:父元素 font-size:15px 子元素设置 width:2em ==30px rem 是什么 rem是相对于html的 根 元素的字体大小 优点 : 直接修改根元素的字体大小就能改变其他的大小 ...
分类:
移动开发 时间:
2021-06-02 19:22:08
阅读次数:
0
1.主节点线程状态(Replication Master Thread States): Finished reading one binlog; switching to next binlog 线程 已经完成读取 binlog 文件,并切换到下一个 binlog 文件 Master has se ...
分类:
数据库 时间:
2021-06-02 19:03:34
阅读次数:
0
C301 saosi = south evidence investigate claim(声称) trail(踪迹) bushes(灌木丛) convince(坚信) this one must have been in the possession(n.财产,私人物品) of a private ...
分类:
其他好文 时间:
2021-06-02 17:39:19
阅读次数:
0
1 使用ntp同步时间 1.1 如果开启了ntp服务,使用ntpsta查看同步状态 1.2 如果不使用用ntp服务,使用ntpdate -u ntp.aliyun.com 直接同步时间 echo "*/20 * * * * /usr/sbin/ntpdate -u ntp1.aliyun.com > ...
分类:
其他好文 时间:
2021-06-02 16:45:57
阅读次数:
0
Docker Tutorial Basic Docker Commands pull an image docker pull {image name}:{image version} list all docker images docker image ls -a create and run ...
分类:
其他好文 时间:
2021-06-02 15:27:12
阅读次数:
0