if rv is not None and rsv is not None:# extract version/subversionself._nmap_version_number = int(line[rv.start():rv.end()])self._nmap_subversion_number = int(line[rsv.start()+1:rsv.end()])break}
可以通过接口通信