You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-10-27 11:41:41
阅读次数:
23
select * from all_col_comments; //所有的数据库表的注释 select * from all_tables; //所有用户下所有的表 及表的属性 select * from user_col_comments; //当前用户下数据库表的注释 select * from ...
分类:
数据库 时间:
2020-10-22 23:01:29
阅读次数:
31
Definition (Nowhere dense set) A set $A$ in a topological space $X$ is nowhere dense if the complement of its closure is dense in $X$, i.e. $\overline ...
分类:
其他好文 时间:
2020-10-22 22:47:57
阅读次数:
24
问题1:char、varchar的区别是什么?varchar是变长而char的长度是固定的。如果你的内容是固定大小的,你会得到更好的性能。 问题2: TRUNCATE和DELETE的区别是什么?DELETE命令从一个表中删除某一行,或多行,TRUNCATE命令永久地从表中删除每一行。 问题3:什么是 ...
分类:
数据库 时间:
2020-10-22 22:34:11
阅读次数:
31
1.Socket和TCP/IP的关系 "All problems in computer science can be solved by another level of indirection." 为满足应用层需求,系统对TCP/IP层进行细节屏蔽和抽象,Socket层就相当于TCP/IP和应用 ...
分类:
系统相关 时间:
2020-10-21 21:04:10
阅读次数:
40
@ECHO off cls ECHO Deleting all BIN and OBJ folders... ECHO. FOR /d /r . %%d in (bin,obj) DO ( IF EXIST "%%d" ( ECHO %%d | FIND /I "\node_modules\" > ...
这两个方法,都是并行执行多个异步操作。而不同的是,all方式遵循“谁跑得慢,以谁为准执行回调”,而race遵循的是“谁跑的快,以谁为准执行回调” 以下为两个异步函数 function yibu1() { var p1 = new Promise((resolve, reject) => { setT ...
分类:
其他好文 时间:
2020-10-19 22:59:46
阅读次数:
33
通过配置文件给普通用户提权用root给普通用户提权:vi /etc/sudoers定位到110行(不同操作系统版本可能不是同一行,是以下内容那一行即可)110 # %wheel ALL=(ALL) NOPASSWD:ALL复制这一行,添加到文末将 # %wheel 替换为用户的名字保存退出(撤权时删 ...
分类:
其他好文 时间:
2020-10-19 22:59:03
阅读次数:
33
Linux常用命令1.查看目录结构命令ls(list)功能:列出目录内容格式:ls[参数][文件或目录]-a或--all 所有文件和目录。注意隐藏文件、特殊目录、以“.”开头的和以“..”开头的-l 使用详细格式列表-t 用文件和目录的更改时间排序-r 反向排序--help 在线帮助常用:ls -l ...
分类:
系统相关 时间:
2020-10-18 17:01:47
阅读次数:
89
go 查询es报错: 一、问题描述: elasticsearch 分页查询数据,刚开始数据还可以正常显示,但是到后面就报错: panic: elastic: Error 400 (Bad Request): all shards failed [type=search_phase_execution ...
分类:
其他好文 时间:
2020-10-18 16:27:43
阅读次数:
23