populate dataclass instance from other dataclass instance

前端 未结 0 726
轻奢々
轻奢々 2021-02-05 21:09

I have a scenario where I\'ve two dataclass which share some command keys. Let\'s say

@dataclass
class A
key1: str = ""
key2: dict = {}
key3: Any = &quo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题