Skip to content

Commit e46ad76

Browse files
authored
Merge pull request #1 from TwoWater/master
12 / 17 同步一次
2 parents eb1acf2 + a754768 commit e46ad76

File tree

1 file changed

+1
-1
lines changed
  • Article/PythonBasis/python14

1 file changed

+1
-1
lines changed

Article/PythonBasis/python14/2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
举个例子,比如你使用 `C[ET]O` 匹配到的是 CEO 或 CTO ,也就是说 `[ET]` 代表的是一个 E 或者一个 T 。像上面提到的 `[a-z]` ,就是所有小写字母中的其中一个,这里使用了连字符 “-” 定义一个连续字符的字符范围。当然,像这种写法,里面可以包含多个字符范围的,比如:`[0-9a-fA-F]` ,匹配单个的十六进制数字,且不分大小写。注意了,字符和范围定义的先后顺序对匹配的结果是没有任何影响的。
1111

12-
其实说了那么多,只是想证明,字符集一对方括号 “[]里面的字符关系是或关系,下面看一个例子:
12+
其实说了那么多,只是想证明,字符集一对方括号 “[]里面的字符关系是"或(OR)"关系,下面看一个例子:
1313

1414
```Python
1515

0 commit comments

Comments
 (0)