首页
文章列表
返回找工具啦
标签:对象状态
共 1 篇文章
Python dataclass 的 frozen=True 为什么不能真正实现不可变对象
Python dataclass 的 frozen=True 为什么不能真正实现不可变对象 使用 dataclass 时,很多人会加上 frozen=True 参数,期望创建一个不
# Pythondataclass
# frozen=True
# 不可变对象
2026-05-21
324
0