dataclass() 装饰器会检查类以查找 field 。 field 被定义为具有类型标注 的类变量。 除了下面描述的两个例外,在 ... 也就是说,这三种 dataclass() 用法是等价的:.
確定! 回上一頁