8000 增加类方法和静态方法的参考资料 · pythonpeixun/interview_python@7399b90 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7399b90

Browse files
LchenLchen
Lchen
authored and
Lchen
committed
增加类方法和静态方法的参考资料
1 parent bc7e7e7 commit 7399b90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ a=A()
219219
| a = A() | a.foo(x) | a.class_foo(x) | a.static_foo(x) |
220220
| A | 不可用 | A.class_foo(x) | A.static_foo(x) |
221221

222-
更多关于这个问题:http://stackoverflow.com/questions/136097/what-is-the-difference-between-staticmethod-and-classmethod-in-python
223-
222+
更多关于这个问题:
223+
1. http://stackoverflow.com/questions/136097/what-is-the-difference-between-staticmethod-and-classmethod-in-python
224+
2. https://realpython.com/blog/python/instance-class-and-static-methods-demystified/
224225
## 4 类变量和实例变量
225226

226227
**类变量:**

0 commit comments

Comments
 (0)
0