Python 标准库参考指南 3.7.13 extend(t) 或 s += t 用 t 的内容扩展 s (基本上等同于 s[len(s):len(s)] = t) s *= n 使用 s 的内容重复 n 次来对其进行更新 (6) s.insert(i, x) 在由 i 给出的索引位置将 x 插入 s (等同于 s[i:i] = [x]) s.pop([i]) 提取在 i 位置上的项,并将其从 s 中移除 (2) s.remove(x) 符产生的多义性。要应用一个内层重复嵌套,可以使用括号。比如,表达式 (?:a{6})* 匹配 6 个 'a' 字符重复任意次数。 特殊字符是: . (点) 在默认模式,匹配除了换行的任意字符。如果指定了标签DOTALL ,它将匹配包括换行符的任意 字符。 ^ (插入符号) 匹配字符串的开头,并且在MULTILINE 模式也匹配换行后的首个符号。 $ 匹配字符串尾或者在字符串尾的换行符的前一个字符,在MULTILINE 值为字符串,其含义如下: 值 含义 'replace' a[i1:i2] 应由 b[j1:j2] 替换。 'delete' a[i1:i2] 应被删除。请注意在此情况下 j1 == j2。 'insert' b[j1:j2] 应插入到 a[i1:i1]。请注意在此情况下 i1 == i2。 'equal' a[i1:i2] == b[j1:j2] (两个子序列相同)。 例如 >>> a =0 码力 | 1846 页 | 9.09 MB | 10 月前3
Python 标准库参考指南 2.7.18 which s[i] == x s.index(x[, i[, j]]) return smallest k such that s[k] == x and i <= k < j (4) s.insert(i, x) same as s[i:i] = [x] (5) s.pop([i]) same as x = s[i]; del s[i]; return x (6) s.remove(x) specifying start and stop positions. (5) When a negative index is passed as the first parameter to the insert() method, the list length is added, as for slice indices. If it is still negative, it is truncated brace (“{”or“}”) as the fill character when using the str.format() method. However, it is possible to insert a curly brace with a nested replacement field. This limitation doesn’t affect the format() function0 码力 | 1552 页 | 7.42 MB | 10 月前3
Python 标准库参考指南 2.7.18 which s[i] == x s.index(x[, i[, j]]) return smallest k such that s[k] == x and i <= k < j (4) s.insert(i, x) same as s[i:i] = [x] (5) s.pop([i]) same as x = s[i]; del s[i]; return x (6) s.remove(x) specifying start and stop positions. (5) When a negative index is passed as the first parameter to the insert() method, the list length is added, as for slice indices. If it is still negative, it is truncated brace (“{”or“}”) as the fill character when using the str.format() method. However, it is possible to insert a curly brace with a nested replacement field. This limitation doesn’t affect the format() function0 码力 | 1552 页 | 7.42 MB | 10 月前3
Python 标准库参考指南 2.7.18 which s[i] == x s.index(x[, i[, j]]) return smallest k such that s[k] == x and i <= k < j (4) s.insert(i, x) same as s[i:i] = [x] (5) s.pop([i]) same as x = s[i]; del s[i]; return x (6) s.remove(x) specifying start and stop positions. (5) When a negative index is passed as the first parameter to the insert() method, the list length is added, as for slice indices. If it is still negative, it is truncated brace (“{”or“}”) as the fill character when using the str.format() method. However, it is possible to insert a curly brace with a nested replacement field. This limitation doesn’t affect the format() function0 码力 | 1552 页 | 7.42 MB | 10 月前3
Python 标准库参考指南 3.7.13 extend(t) 或 s += t 用 t 的内容扩展 s (基本上等同于 s[len(s):len(s)] = t) s *= n 使用 s 的内容重复 n 次来对其进行更新 (6) s.insert(i, x) 在由 i 给出的索引位置将 x 插入 s (等同于 s[i:i] = [x]) s.pop([i]) 提取在 i 位置上的项,并将其从 s 中移除 (2) s.remove(x) 生的多义性。要应用一个内层重复嵌套,可以使用括号。比如,表达式 (?:a{6})* 匹配 6 个 'a' 字符重复 任意次数。 特殊字符是: . (点) 在默认模式,匹配除了换行的任意字符。如果指定了标签DOTALL ,它将匹配包括换行符的任意字符。 ^ (插入符号) 匹配字符串的开头,并且在MULTILINE 模式也匹配换行后的首个符号。 $ 匹配字符串尾或者在字符串尾的换行符的前一个字符,在MULTILINE 发布 3.7.13 值 含义 'replace' a[i1:i2] 应由 b[j1:j2] 替换。 'delete' a[i1:i2] 应被删除。请注意在此情况下 j1 == j2。 'insert' b[j1:j2] 应插入到 a[i1:i1]。请注意在此情况下 i1 == i2。 'equal' a[i1:i2] == b[j1:j2] (两个子序列相同)。 例如 >>> a =0 码力 | 1961 页 | 9.14 MB | 10 月前3
Python 标准库参考指南 3.8.20 extend(t) 或 s += t 用 t 的内容扩展 s (基本上等同于 s[len(s):len(s)] = t) s *= n 使用 s 的内容重复 n 次来对其进行更新 (6) s.insert(i, x) 在由 i 给出的索引位置将 x 插入 s (等同于 s[i:i] = [x]) s.pop() 或 s.pop(i) 提取在 i 位置上的项,并将其从 s 中移除 (2) s.remove(x) 值为字符串,其含义如下: 值 含意 'replace' a[i1:i2] 应由 b[j1:j2] 替换。 'delete' a[i1:i2] 应被删除。请注意在此情况下 j1 == j2。 'insert' b[j1:j2] 应插入到 a[i1:i1]。请注意在此情况下 i1 == i2。 'equal' a[i1:i2] == b[j1:j2] (两个子序列相同)。 例如: >>> a = b[0:2] 'ab' --> 'ab' replace a[3:4] --> b[2:3] 'x' --> 'y' equal a[4:6] --> b[3:5] 'cd' --> 'cd' insert a[6:6] --> b[5:6] '' --> 'f' get_grouped_opcodes(n=3) 返回一个带有最多 n 行上下文的分组的generator。 从get_opcodes()0 码力 | 1927 页 | 9.69 MB | 10 月前3
Python 标准库参考指南 3.8.20 extend(t) 或 s += t 用 t 的内容扩展 s (基本上等同于 s[len(s):len(s)] = t) s *= n 使用 s 的内容重复 n 次来对其进行更新 (6) s.insert(i, x) 在由 i 给出的索引位置将 x 插入 s (等同于 s[i:i] = [x]) s.pop() 或 s.pop(i) 提取在 i 位置上的项,并将其从 s 中移除 (2) s.remove(x) 值为字符串,其含义如下: 值 含意 'replace' a[i1:i2] 应由 b[j1:j2] 替换。 'delete' a[i1:i2] 应被删除。请注意在此情况下 j1 == j2。 'insert' b[j1:j2] 应插入到 a[i1:i1]。请注意在此情况下 i1 == i2。 'equal' a[i1:i2] == b[j1:j2] (两个子序列相同)。 例如: >>> a = b[0:2] 'ab' --> 'ab' replace a[3:4] --> b[2:3] 'x' --> 'y' equal a[4:6] --> b[3:5] 'cd' --> 'cd' insert a[6:6] --> b[5:6] '' --> 'f' get_grouped_opcodes(n=3) 返回一个带有最多 n 行上下文的分组的generator。 从get_opcodes()0 码力 | 1927 页 | 9.69 MB | 10 月前3
Python 标准库参考指南 3.8.20 extend(t) 或 s += t 用 t 的内容扩展 s (基本上等同于 s[len(s):len(s)] = t) s *= n 使用 s 的内容重复 n 次来对其进行更新 (6) s.insert(i, x) 在由 i 给出的索引位置将 x 插入 s (等同于 s[i:i] = [x]) s.pop() 或 s.pop(i) 提取在 i 位置上的项,并将其从 s 中移除 (2) s.remove(x) 值为字符串,其含义如下: 值 含意 'replace' a[i1:i2] 应由 b[j1:j2] 替换。 'delete' a[i1:i2] 应被删除。请注意在此情况下 j1 == j2。 'insert' b[j1:j2] 应插入到 a[i1:i1]。请注意在此情况下 i1 == i2。 'equal' a[i1:i2] == b[j1:j2] (两个子序列相同)。 例如: >>> a = b[0:2] 'ab' --> 'ab' replace a[3:4] --> b[2:3] 'x' --> 'y' equal a[4:6] --> b[3:5] 'cd' --> 'cd' insert a[6:6] --> b[5:6] '' --> 'f' get_grouped_opcodes(n=3) 返回一个带有最多 n 行上下文的分组的generator。 从get_opcodes()0 码力 | 2052 页 | 9.74 MB | 10 月前3
TiDB v8.5 中文手册· · · · · · · · · · · · · · · · · 954 10 7.8.18 如何区分 TiCDC Open Protocol 中的 Row Changed Event 是 INSERT 事件还是 UPDATE 事件?· · · · · · · 954 7.8.19 TiCDC 占用多少 PD 的存储空间 · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 956 7.8.23 使用 TiCDC 创建同步任务时将 safe-mode 设置为 true 后,为什么上游的 INSERT/UPDATE 语句 经 TiCDC 同步到下游后变为了 REPLACE INTO? · · · · · · · · · · · · · · · · · · · · · · · · · · · · SQL 语句 SQL 语句 3 8.4 8.3 8.2 8.1 7.5 7.1 6.5 6.1 5.4 5.3 5.2 5.1 SELECT,INSERT,UPDATE,DELETE,REPLACE Y Y Y Y Y Y Y Y Y Y Y Y INSERT ON DUPLICATE KEY UPDATE Y Y Y Y Y Y Y Y Y Y Y Y LOAD DATA INFILE Y Y0 码力 | 5095 页 | 104.54 MB | 10 月前3
TiDB v8.4 中文手册SQL 语句 SQL 语句 3 8.4 8.3 8.2 8.1 7.5 7.1 6.5 6.1 5.4 5.3 5.2 5.1 SELECT,INSERT,UPDATE,DELETE,REPLACE Y Y Y Y Y Y Y Y Y Y Y Y INSERT ON DUPLICATE KEY UPDATE Y Y Y Y Y Y Y Y Y Y Y Y LOAD DATA INFILE Y Y BATCH [ON COLUMN] LIMIT INTEGER DELETE Y Y Y Y Y Y Y Y N N N N BATCH [ON COLUMN] LIMIT INTEGER INSERT/UPDATE/REPLACE Y Y Y Y Y Y Y N N N N N ALTER TABLE ... COMPACT Y Y Y Y Y Y Y E N N N N 表级锁 (Table affected (0.05 sec) mysql> INSERT INTO t VALUES(); Query OK, 1 rows affected (0.00 sec) mysql> INSERT INTO t VALUES(); Query OK, 1 rows affected (0.00 sec) mysql> INSERT INTO t VALUES(); Query OK0 码力 | 5072 页 | 104.05 MB | 10 月前3
共 212 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22













