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- )
@@ -1801,7 +1801,7 @@ False
1801
1801
1802
1802
---
1803
1803
1804
- ### > Name resolution ignoring class scope
1804
+ ### > Name resolution ignoring class scope/忽略类作用域的名称解析
1805
1805
1806
1806
1\.
1807
1807
```py
@@ -1837,10 +1837,10 @@ class SomeClass:
1837
1837
5
1838
1838
```
1839
1839
1840
- #### 💡 Explanation
1841
- - Scopes nested inside class definition ignore names bound at the class level .
1842
- - A generator expression has its own scope .
1843
- - Starting from Python 3.X, list comprehensions also have their own scope .
1840
+ #### 💡 说明:
1841
+ - 类定义中嵌套的作用域会忽略类内的名称绑定 .
1842
+ - 生成器表达式有它自己的作用域 .
1843
+ - 从 Python 3.X 开始, 列表推导式也有自己的作用域 .
1844
1844
1845
1845
---
1846
1846
You can’t perform that action at this time.
0 commit comments