PAT甲级:1036 Boys vs Girls (25分) 题干 This time you are asked to tell the difference between the lowest grade of all the male students and the highest gra ...
分类:
其他好文 时间:
2020-05-05 10:32:02
阅读次数:
63
接上一篇,不知道为啥突然不能保存了,再开一篇接着写 可以看到sql语句执行的过程 四、type 表示MySQL在表中找到所需行的方式,又称“访问类型”。 常用的类型有: ALL, index, range, ref, eq_ref, const, system, NULL(从左到右,性能从差到好) ...
分类:
数据库 时间:
2020-05-05 10:24:02
阅读次数:
281
"题目来源" Given two strings S 1 and S 2, S = S 1? S 2 is defined to be the remaining string after taking all the characters in S 2 from S 1. Your task is ...
分类:
编程语言 时间:
2020-05-05 01:06:54
阅读次数:
91
场景 mysql执行sql脚本报错 mysql -uroot -p wcp <wcp.free.v4.3.0.all.sql ERROR 1406 (22001) at line 486: Data too long for column 'COMMENTS' at row 1 原因 vim制表符问 ...
分类:
数据库 时间:
2020-05-05 00:47:08
阅读次数:
148
例如:如下表 1. 执行SQL: SELECT d.`id`,d.`deptName` FROM `dept` d 2. 执行SQL: select d.`deptName`,d.`id` from `dept` d 3.然后用union 或 union all 进行连接: SELECT d.`id ...
分类:
其他好文 时间:
2020-05-04 21:45:29
阅读次数:
120
Object.assign 是什么? 此处直接复制mdn文档的内容如下: The Object.assign() method is used to copy the values of all enumerable own properties from one or more source ob ...
分类:
其他好文 时间:
2020-05-04 17:03:26
阅读次数:
58
问题: 求给定数组中两两元素之差,从小到大第k个差是多少 Example 1: Input: nums = [1,3,1] k = 1 Output: 0 Explanation: Here are all the pairs: (1,3) -> 2 (1,1) -> 0 (3,1) -> 2 Th ...
分类:
其他好文 时间:
2020-05-04 15:42:43
阅读次数:
48
本文始发于个人公众号: TechFlow ,原创不易,求个关注 今天是LeetCode专题的第33篇文章,我们一起来看LeetCode的第56题,它的难度是Medium。 题意 这道题的题意也很简单,只有一句话:“Given a collection of intervals, merge all ...
分类:
其他好文 时间:
2020-05-03 20:21:50
阅读次数:
71
①、服务器仓库:http:// https:// ftp:// file:// ②、客户端配置:/etc/yum.conf 每个仓库的公共配置 /etc/yum.repos.d 每个仓库自己的配置文件 ③、yum repolist 以启用的仓库 yum repolist all 所有仓库 yum c ...
分类:
其他好文 时间:
2020-05-03 20:12:30
阅读次数:
57
def all_unique(lst): print(lst,len(lst)) # [1, 2, 3, 4, 5, 6] 6 # [1, 2, 2, 3, 4, 5] 6 print(set(lst),len(set(lst))) # {1, 2, 3, 4, 5, 6} 6 # {1, 2, 3 ...
分类:
其他好文 时间:
2020-05-03 15:00:58
阅读次数:
54