enum.py 文件源码

python
阅读 37 收藏 0 点赞 0 评论 0

项目:idascripts 作者: ctfhacker 项目源码 文件源码
def list(cls, enum):
        # FIXME: make this consistent with every other .list
        eid = by(enum)
        res = __builtin__.list(cls.iterate(eid))
        maxindex = max(__builtin__.map(utils.first, enumerate(res)) or [1])
        maxvalue = max(__builtin__.map(utils.compose(cls.value, "{:x}".format, len), res) or [1])
        for i, mid in enumerate(res):
             print("[{:d}] {:>0{:d}x} {:s}".format(i, cls.value(mid), maxvalue, cls.name(mid)))
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号