@@ -51,7 +51,7 @@ So, here we go...
51
51
- [ > The mysterious key type conversion/神秘的键型转换 * ] ( #-the-mysterious-key-type-conversion神秘的键型转换- )
52
52
- [ > Let's see if you can guess this?/看看你能否猜到这一点?] ( #-lets-see-if-you-can-guess-this看看你能否猜到这一点 )
53
53
- [ Section: Appearances are deceptive!] ( #section-appearances-are-deceptive )
54
- - [ > Skipping lines?] ( #-skipping-lines )
54
+ - [ > Skipping lines?/跳过一行? ] ( #-skipping-lines跳过一行 )
55
55
- [ > Teleportation * ] ( #-teleportation- )
56
56
- [ > Well, something is fishy...] ( #-well-something-is-fishy )
57
57
- [ Section: Watch out for the landmines!] ( #section-watch-out-for-the-landmines )
@@ -1231,7 +1231,7 @@ a, b = a[b] = {}, 5
1231
1231
1232
1232
## Section: Appearances are deceptive!
1233
1233
1234
- ### > Skipping lines?
1234
+ ### > Skipping lines?/跳过一行?
1235
1235
1236
1236
**Output:**
1237
1237
```py
@@ -1241,29 +1241,29 @@ a, b = a[b] = {}, 5
1241
1241
11
1242
1242
```
1243
1243
1244
- Wut ?
1244
+ 什么鬼 ?
1245
1245
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
+ **注意 :** 如果你想要重现的话最简单的方法是直接复制上面的代码片段到你的文件或命令行里 .
1247
1247
1248
- #### 💡 Explanation
1248
+ #### 💡 说明:
1249
1249
1250
- Some non-Western characters look identical to letters in the English alphabet but are considered distinct by the interpreter .
1250
+ 一些非西方字符虽然看起来和英语字母相同, 但会被解释器识别为不同的字母 .
1251
1251
1252
1252
```py
1253
- >>> ord('е') # cyrillic 'e' (Ye)
1253
+ >>> ord('е') # 西里尔语的 'e' (Ye)
1254
1254
1077
1255
- >>> ord('e') # latin 'e', as used in English and typed using standard keyboard
1255
+ >>> ord('e') # 拉丁语的 'e', 用于英文并使用标准键盘输入
1256
1256
101
1257
1257
>>> 'е' == 'e'
1258
1258
False
1259
1259
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` 异常
1262
1262
>>> value
1263
1263
42
1264
1264
```
1265
1265
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' 的代码点不同证实了上述例子 .
1267
1267
1268
1268
---
1269
1269
0 commit comments