Skip to content

Commit

Permalink
Merge pull request walter201230#30 from Zeng-JianWen/patch-1
Browse files Browse the repository at this point in the history
略加润色,“是或关系”=>"是或(OR)关系"
  • Loading branch information
walter201230 committed Dec 6, 2019
2 parents eb1acf2 + 13e6a8c commit a754768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Article/PythonBasis/python14/2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

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

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

```Python

Expand Down

0 comments on commit a754768

Please sign in to comment.