首页 > 技术文章 > Python中 如何使用telnet 检测端口是否通
poerli 2016-11-04 16:56 原文
import
tn=telnetlib.Telnet(host,port)不报异常则该端口是通的,可结合try进行使用