Skip to content

Commit cb4f662

Browse files
暮晨ducheng
暮晨
authored and
ducheng
committed
EX.Skipping lines
1 parent 9bb9a38 commit cb4f662

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ So, here we go...
5151
- [> The mysterious key type conversion/神秘的键型转换 *](#-the-mysterious-key-type-conversion神秘的键型转换-)
5252
- [> Let's see if you can guess this?/看看你能否猜到这一点?](#-lets-see-if-you-can-guess-this看看你能否猜到这一点)
5353
- [Section: Appearances are deceptive!](#section-appearances-are-deceptive)
54-
- [> Skipping lines?](#-skipping-lines)
54+
- [> Skipping lines?/跳过一行?](#-skipping-lines跳过一行)
5555
- [> Teleportation *](#-teleportation-)
5656
- [> Well, something is fishy...](#-well-something-is-fishy)
5757
- [Section: Watch out for the landmines!](#section-watch-out-for-the-landmines)
@@ -1231,7 +1231,7 @@ a, b = a[b] = {}, 5
12311231
12321232
## Section: Appearances are deceptive!
12331233
1234-
### > Skipping lines?
1234+
### > Skipping lines?/跳过一行?
12351235
12361236
**Output:**
12371237
```py
@@ -1241,29 +1241,29 @@ a, b = a[b] = {}, 5
12411241
11
12421242
```
12431243
1244-
Wut?
1244+
什么鬼?
12451245
1246-
**Note:** The easiest way to reproduce this is to simply copy the statements from the above snippet and paste them into your file/shell.
1246+
**注意:** 如果你想要重现的话最简单的方法是直接复制上面的代码片段到你的文件或命令行里.
12471247
1248-
#### 💡 Explanation
1248+
#### 💡 说明:
12491249
1250-
Some non-Western characters look identical to letters in the English alphabet but are considered distinct by the interpreter.
1250+
一些非西方字符虽然看起来和英语字母相同, 但会被解释器识别为不同的字母.
12511251
12521252
```py
1253-
>>> ord('е') # cyrillic 'e' (Ye)
1253+
>>> ord('е') # 西里尔语的 'e' (Ye)
12541254
1077
1255-
>>> ord('e') # latin 'e', as used in English and typed using standard keyboard
1255+
>>> ord('e') # 拉丁语的 'e', 用于英文并使用标准键盘输入
12561256
101
12571257
>>> 'е' == 'e'
12581258
False
12591259
1260-
>>> value = 42 # latin e
1261-
>>> valuе = 23 # cyrillic 'e', Python 2.x interpreter would raise a `SyntaxError` here
1260+
>>> value = 42 # 拉丁语 e
1261+
>>> valuе = 23 # 西里尔语 'e', Python 2.x 的解释器在这会抛出 `SyntaxError` 异常
12621262
>>> value
12631263
42
12641264
```
12651265
1266-
The built-in `ord()` function returns a character's Unicode [code point](https://en.wikipedia.org/wiki/Code_point), and different code positions of Cyrillic 'e' and Latin 'e' justify the behavior of the above example.
1266+
内置的 `ord()` 函数可以返回一个字符的 Unicode [代码点](https://en.wikipedia.org/wiki/Code_point), 这里西里尔语 'e' 和拉丁语 'e' 的代码点不同证实了上述例子.
12671267
12681268
---
12691269

0 commit comments

Comments
 (0)