if not obj_port.udp_port_dict:
print '\n'
print '=' * 20
print '[+]未发现开放UDP端口.'
else:
print '\n'
print '=' * 20
for k,v in obj_port.udp_port_dict.items():
print '[+]主机 %s 开放的UDP端口有:%s' % (k,str(v))
if __name__ == '__main__':
try:
start_time = time.time()
main()
stop_time = time.time()
print '[+]总共耗时'+str(stop_time-start_time)+'秒.'
except Exception,e:
print '[-]执行出错,具体错误见下面信息.'
print e