我正在使用 python 3.4
class baba():
def __init__(self,a,b,c,d,e,f,g):
self.a = a
self.b = b
self.c = c
self.d = d
self.e = e
self.f = f
self.g = g
有没有更短的方法来写这个?除了将所有这些都作为字典
我正在使用 python 3.4
class baba():
def __init__(self,a,b,c,d,e,f,g):
self.a = a
self.b = b
self.c = c
self.d = d
self.e = e
self.f = f
self.g = g
有没有更短的方法来写这个?除了将所有这些都作为字典