37,721
社区成员
发帖
与我相关
我的任务
分享
class Test(object):
def __init__(self, a = None, b = None, c = None):
self.a = a;
self.b = b;
self.c = c;
print a, b, c;
t1 = Test();
t2 = Test(1, 2, 3);
t3 = Test(1, 2);
t4 = Test(c = 3);
t5 = Test(1, c = 3);