有一个基类如下:
class MailCreate (object ):
    def __init__(self,name ):
        super (MailCreate, self ).__init__()
        self.name = name
它有一个参数 name.
现在想建立一个新类 mail 并继承 MailCreate.
class mail (MailCreate ):
    def __init__(self, arg ):
        super (mail, self ).__init__()
        self.arg = arg
应该怎么用 super 给父类的 name 参数赋值?
|  |      1c      2015-09-03 23:33:27 +08:00  1 super (mail, self ).__init__('xxx') name = 'xxx' | 
|  |      2leisurelylicht OP @c 抱歉,我没怎么看明白,能麻烦您写的详细一点吗. | 
|  |      3seki      2015-09-03 23:46:05 +08:00  1 放在调用的 __init__ 里面 这里就应该是 super ().__init__(name=xxx ) | 
|  |      4leisurelylicht OP @seki 明白了,多谢! |