2018 Web全栈架构师四期视频教程

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_31642819/article/details/86251463

需要学习资源,请点击开挂教学楼

my_nested_dict = {"global": {"peers": {"15.1.1.1": {"remote_id": "15.1.1.1", "address_family": {"ipv4": {"sent_prefixes": 1, "received_prefixes": 4, "accepted_prefixes": 4}}, "remote_as": 65002, "uptime": 13002, "is_enabled": true, "is_up": true, "description": "== R3 BGP Neighbor ==", "local_as": 65002}}, "router_id": "15.1.1.2"}}
filtered_list = ['peers', 'remote_id', 'remote_as', 'uptime']
peers: 15.1.1.1
remote_id: 15.1.1.1
remote_as: 65002
uptime: 13002

猜你喜欢

转载自blog.csdn.net/qq_31642819/article/details/86251463