首页
文章列表
返回找工具啦
标签:特殊方法
共 1 篇文章
Python的descriptor协议与@property底层实现
Python的descriptor协议与@property底层实现 Python中的@property装饰器能让我们将方法调用伪装成属性访问,简化接口。但你是否好奇过,这优雅的语法
# Python
# 描述符协议
# @property
2026-05-31
113
0