File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ So, here we go...
64
64
- [ > Same operands, different story!/同人不同命!] ( #-same-operands-different-story同人不同命 )
65
65
- [ > The out of scope variable/外部作用域变量] ( #-the-out-of-scope-variable外部作用域变量 )
66
66
- [ > Be careful with chained operations/小心链式操作] ( #-be-careful-with-chained-operations小心链式操作 )
67
- - [ > Name resolution ignoring class scope] ( #-name-resolution-ignoring-class-scope )
67
+ - [ > Name resolution ignoring class scope/忽略类作用域的名称解析 ] ( #-name-resolution-ignoring-class-scope忽略类作用域的名称解析 )
68
68
- [ > Needle in a Haystack] ( #-needle-in-a-haystack )
69
69
- [ Section: The Hidden treasures!] ( #section-the-hidden-treasures )
70
70
- [ > Okay Python, Can you make me fly? * ] ( #-okay-python-can-you-make-me-fly- )
@@ -1806,7 +1806,7 @@ False
1806
1806
1807
1807
---
1808
1808
1809
- ### > Name resolution ignoring class scope
1809
+ ### > Name resolution ignoring class scope/忽略类作用域的名称解析
1810
1810
1811
1811
1\.
1812
1812
```py
@@ -1842,10 +1842,10 @@ class SomeClass:
1842
1842
5
1843
1843
```
1844
1844
1845
- #### 💡 Explanation
1846
- - Scopes nested inside class definition ignore names bound at the class level .
1847
- - A generator expression has its own scope .
1848
- - Starting from Python 3.X, list comprehensions also have their own scope .
1845
+ #### 💡 说明:
1846
+ - 类定义中嵌套的作用域会忽略类内的名称绑定 .
1847
+ - 生成器表达式有它自己的作用域 .
1848
+ - 从 Python 3.X 开始, 列表推导式也有自己的作用域 .
1849
1849
1850
1850
---
1851
1851
You can’t perform that action at this time.
0 commit comments