def security_gen(self):
        '返回一个基于代码的迭代器'
        for item in self.index.levels[1]:
            yield self.new(
                self.data.xs(item,
                             level=1,
                             drop_level=False),
                dtype=self.type,
                if_fq=self.if_fq
            )