cm_interfaces.py 文件源码

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

项目:CManager 作者: fachrioktavian 项目源码 文件源码
def print_ifaces_ethernet_table(self):
        indent = ' ' * 1
        header = indent + 'Ethernet interfaces information:\n'
        self.ethernet_table = [['Interface', 'Status', 'IP Address', 'Mask']]
        for data in self.ifaces_ethernet:
            self.ethernet_table.append([
                data,
                self.dict_status[data],
                self.dict_ipaddr[data],
                self.dict_mask[data]
            ])
        table = AsciiTable(self.ethernet_table)
        print (Fore.YELLOW + Style.DIM + header + table.table)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号