【发布时间】:2016-06-09 02:00:44
【问题描述】:
我正在使用 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 python-3.x constructor method-parameters