8000 Merge pull request #41 from mathbugua/master · pythonpeixun/interview_python@81c88e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 81c88e0

Browse files
authored
Merge pull request taizilongxu#41 from mathbugua/master
增加类方法和静态方法的参考资料
2 parents bc7e7e7 + 7399b90 commit 81c88e0
8000

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