Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit81c88e0

Browse files
authored
Merge pull requesttaizilongxu#41 from mathbugua/master
增加类方法和静态方法的参考资料
2 parentsbc7e7e7 +7399b90 commit81c88e0

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)

[8]ページ先頭

©2009-2025 Movatter.jp