对nmap扫描结果xml格式的文件进行解析,无需直接xml解析或读取,可直接使用模块: 1.nmapparser 安装:pip install nmapparser Demo: #!/usr/bin/env python # Copyright (C) 2007 Guilherme Polo <ggpolo@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under…