为什么这样错了
class Person(object): def __init__(self,n,**b): for key in b: self.key = b[key] self.name = n xiaohui =Person('xiaohui',job= 'doctor') print xiaohui.job #为什么这样是错呢
class Person(object): def __init__(self,n,**b): for key in b: self.key = b[key] self.name = n xiaohui =Person('xiaohui',job= 'doctor') print xiaohui.job #为什么这样是错呢
2016-03-13
举报