Python的内置list类
摘要:
class NamedList(list): def __init__(self, a_name): list.__init__([]) self.name = a_nameif __name__ == '__main__': johnny = NamedList('John Paul Jones' 阅读全文
posted @ 2017-09-20 11:09 sammy1989 阅读(284) 评论(0) 推荐(0) 编辑