提交 98aef036 编写于 作者: W wizardforcel

2020-07-08 11:18:39

上级 b0c7ddc8
......@@ -16,11 +16,11 @@
| 表达式 | 字符串 | 是否匹配 |
| --- | --- | --- |
| `^a...s$` | `abs` | 匹配 |
| `^a...s$` | `abs` | 没有匹配 |
| | `alias` | 匹配 |
| | `abyss` | 匹配 |
| | `Alias` | 匹配 |
| | `An abacus` | 匹配 |
| | `Alias` | 没有匹配 |
| | `An abacus` | 没有匹配 |
* * *
......@@ -139,7 +139,7 @@ else:
| `ma*n` | `mn` | 1 个匹配 |
| `man` | 1 个匹配 |
| `maaan` | 1 个匹配 |
| `main` | 没有匹配`a`之后没有`n`) |
| `main` | 没有匹配(`a`之后没有`n`) |
| `woman` | 1 个匹配 |
* * *
......@@ -150,10 +150,10 @@ else:
| 表达式 | 字符串 | 是否匹配 |
| --- | --- | --- |
| `ma+n` | `mn` | 没有匹配(没有`a`字符) |
| `ma+n` | `mn` | 没有匹配(没有`a`字符) |
| `man` | 1 个匹配 |
| `maaan` | 1 个匹配 |
| `main` | 没有匹配`a`后跟`n`) |
| `main` | 没有匹配(`a`后跟`n`) |
| `woman` | 1 个匹配 |
* * *
......@@ -166,8 +166,8 @@ else:
| --- | --- | --- |
| `ma?n` | `mn` | 1 个匹配 |
| `man` | 1 个匹配 |
| `maaan` | 没有匹配(一个以上`a`字符) |
| `main` | 没有匹配 (a is not followed by n) |
| `maaan` | 没有匹配(一个以上`a`字符) |
| `main` | 没有匹配`a`之后没有`n` |
| `woman` | 1 个匹配 |
* * *
......@@ -187,8 +187,8 @@ else:
| 表达式 | 字符串 | 是否匹配 |
| --- | --- | --- |
| `[0-9]{2,4}` | `ab123csde` | 1 个匹配(在`ab<u>123</u>csde`匹配) |
| `12 and 345673` | 3 个匹配`<u>12</u>``<u>3456</u>``<u>73</u>`) |
| `[0-9]{2,4}` | `ab123csde` | 1 个匹配(在`ab<u>123</u>csde`) |
| `12 and 345673` | 3 个匹配(`<u>12</u>``<u>3456</u>``<u>73</u>`) |
| `1 and 2` | 没有匹配 |
* * *
......@@ -237,7 +237,7 @@ else:
| 表达式 | 字符串 | 是否匹配 |
| --- | --- | --- |
| `\Athe` | `the sun` | Match |
| `\Athe` | `the sun` | 匹配 |
| `In the sun` | 没有匹配 |
* * *
......@@ -246,11 +246,11 @@ else:
| 表达式 | 字符串 | 是否匹配 |
| --- | --- | --- |
| `\bfoo` | `football` | Match |
| `a football` | Match |
| `\bfoo` | `football` | 匹配 |
| `a football` | 匹配 |
| `afootball` | 没有匹配 |
| `foo\b` | `the foo` | Match |
| `the afoo test` | Match |
| `foo\b` | `the foo` | 匹配 |
| `the afoo test` | 匹配 |
| `the afootest` | 没有匹配 |
* * *
......@@ -261,10 +261,10 @@ else:
| --- | --- | --- |
| `\Bfoo` | `football` | 没有匹配 |
| `a football` | 没有匹配 |
| `afootball` | Match |
| `afootball` | 匹配 |
| `foo\B` | `the foo` | 没有匹配 |
| `the afoo test` | 没有匹配 |
| `the afootest` | Match |
| `the afootest` | 匹配 |
* * *
......
......@@ -82,17 +82,17 @@ time.struct_time(tm_year=2018, tm_mon=12, tm_mday=27,
```
| 指数 | 属性 | 价值观 |
| 序号 | 属性 | 值 |
| --- | --- | --- |
| 0 | `tm_year` | 0000, ...., 2018, ..., 9999 |
| 1 | `tm_mon` | 1, 2, ..., 12 |
| 2 | `tm_mday` | 1, 2, ..., 31 |
| 3 | `tm_hour` | 0, 1, ..., 23 |
| 4 | `tm_min` | 0, 1, ..., 59 |
| 5 | `tm_sec` | 0, 1, ..., 61 |
| 6 | `tm_wday` | 0,1,...,6; 星期一是 0 |
| 7 | `tm_yday` | 1, 2, ..., 366 |
| 8 | `tm_isdst` | 0、1 或-1 |
| 0 | `tm_year` | 0000,....,2018,...,9999 |
| 1 | `tm_mon` | 1,2,...,12 |
| 2 | `tm_mday` | 1,2,...,31 |
| 3 | `tm_hour` | 0,1,...,23 |
| 4 | `tm_min` | 0,1,...,59 |
| 5 | `tm_sec` | 0,1,...,61 |
| 6 | `tm_wday` | 0,1,...,6星期一是 0 |
| 7 | `tm_yday` | 1,2,...,366 |
| 8 | `tm_isdst` | 0、1 或 -1 |
可以使用索引和属性访问`time.struct_time`对象的值(元素)。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册