Define partial specialization of Class

后端 未结 0 1428
暗喜
暗喜 2020-12-17 22:47

I have a bunch of classes that all vary only by a string and a function, like so:

class ClassOne:
    __init__(self, x):
        self._x = x
        self._my_         


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