1、序列 1.1、什么是序列 数据结构是以某种方式(如通过编号)组合起来的数据元素(如数、字符乃至其他数据结构)集合。在Python中,最基本的数据结构为序列(sequence)。 序列中的每个元素都有编号,即其位置或索引,其中第一个元素的索引为0。用负索引表示序列末尾元素的位置。 序列包含三种:列 ...
分类:
其他好文 时间:
2021-01-21 10:45:11
阅读次数:
0
1、Invalid byte 2 of 2-byte UTF-8 sequence. 原因在于: C:\Users\Administrator.kettle\repositories.xml 这个xml文件中有汉字导致乱码。 解决办法: 修改文件中的乱码 将同文件夹下的.spoonrc文件和db.c ...
分类:
其他好文 时间:
2021-01-21 10:40:57
阅读次数:
0
题目: Monocarp had a sequence a consisting of n+m integers a1,a2,…,an+m. He painted the elements into two colors, red and blue; n elements were painted ...
分类:
其他好文 时间:
2021-01-20 12:13:42
阅读次数:
0
文件读写包括:文件打开(open),模式(文件读(r,r+),文件写(w,w+),文件追加(a)),文件关闭(close()),字符集(encoding=UTF-8),流程管理函数with(),文件的相对路径和绝对路径 open():open打开的文件是一个流,只能被read()函数消费一次,如果需 ...
分类:
编程语言 时间:
2021-01-14 10:31:00
阅读次数:
0
Word Ladder (H) 题目 Given two words beginWord and endWord, and a dictionary wordList, return the length of the shortest transformation sequence from be ...
分类:
其他好文 时间:
2021-01-12 10:54:49
阅读次数:
0
定义Fibonacci的第0项为0,第1项为1,使用C代码求出第n项 // 递归方法, 特点:容易实现,时间空间复杂度高 int fib(int n) { // 入参合法判断 if (n < 0) { return -1; } // 基线条件(base case) if (n < 2) { retu ...
分类:
其他好文 时间:
2021-01-12 10:34:15
阅读次数:
0
场景1:查询时间过长 select u.*,t.* (select sum(l.all_pl2) from TABLE_A l where 1 = 1 and l.tx_dt <= '20201223' and u.investor_id = l.investor_id) as sum_all_pl ...
分类:
数据库 时间:
2021-01-08 10:47:49
阅读次数:
0
三次握手: 第一次握手:客户端向服务端发送TCP报文,标志位SYN=1,客户端发送序号Seq为Sequence number=x(0) 第二次握手:服务端回应TCP报文:SYN=1 ACK=1 将确认序号Ack(Acknowledgement Number)设置为客户端发送序号Seq加1,即x(0) ...
分类:
其他好文 时间:
2021-01-06 12:31:04
阅读次数:
0
yaml 中允许标识三种格式,分别为常量值、对象和数组 对象:键值对的集合,又称字典(dictionary)/哈希(hashes)/映射(mapping) 数组:一组按次序排列的值,又称序列(sequence)/列表(list) 常量值:单个,不可再分割的值 基本格式要求: 1.大小写敏感 2.使用 ...
分类:
其他好文 时间:
2021-01-04 11:26:57
阅读次数:
0
分屏查看文件more/lessmore分屏查看,空格按屏查看less支持按行上下键查看,空格按屏查看 grep 查找 //若想使用正则表达式, 需要 -E选项grep -E "nice" metadata.txt //正则表达式匹配metadata中,包含nice的行egrep "nice" met ...
分类:
系统相关 时间:
2021-01-04 10:47:00
阅读次数:
0