美文网首页
Python字典嵌套列表取值

Python字典嵌套列表取值

作者: 夙小叶 | 来源:发表于2020-02-09 18:00 被阅读0次
# ya
[{'CVE-2019-19781': ['CVE-2019-19781 - Remote Code Execution on Citrix ADC Netscaler exploit',
   'https://github.com/mpgn/CVE-2019-19781',
   'python']},
 {'CVE-2019-1388': ['CVE-2019-1388 UAC提权 (nt authority\\system)',
   'https://github.com/jas502n/CVE-2019-1388',
   'none']},
 {'CurveBall': ['PoC for CVE-2020-0601- Windows CryptoAPI (Crypt32.dll)',
   'https://github.com/ollypwn/CurveBall',
   'ruby']},
 {'CVE-2019-19634': ['这是一个过滤器绕过的漏洞,导致在 class.upload.php <= 2.0.4 中执行任意文件上传和远程代码',
   'https://github.com/jra89/CVE-2019-19634',
   'php']}]
  • 取值
for i in ya[0]: 
    print(ya[0][i]) 

['CVE-2019-19781 - Remote Code Execution on Citrix ADC Netscaler exploit', 'https://github.com/mpgn/CVE-2019-19781', 'python']


for i in ya[0]: 
    print(ya[0][i][0]) 

CVE-2019-19781 - Remote Code Execution on Citrix ADC Netscaler exploit

图片.png

相关文章

网友评论

      本文标题:Python字典嵌套列表取值

      本文链接:https://www.haomeiwen.com/subject/arjnxhtx.html