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
猜你喜欢
  • 2021-10-27
  • 2022-01-19
  • 2021-11-29
  • 2021-08-23
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案