import tn=telnetlib.Telnet(host,port)不报异常则该端口是通的,可结合try进行使用 相关文章: 2022-01-20 2022-12-23 2021-08-03 2021-11-09 2022-12-23 2022-02-20 2022-12-23 2021-12-09