Joa*_*nge 4 python class function
在python的类函数中传递自引用值的原因是什么?例如:
class MyClass:
"""A simple example class"""
i = 12345
def f(**self**):
return 'hello world'
Run Code Online (Sandbox Code Playgroud)
通过这样做,你不是在做编译器的工作吗?
| 归档时间: |
|
| 查看次数: |
6612 次 |
| 最近记录: |