Python中 如何使用telnet 檢測端口是否通

import import

tn=telnetlib.Telnet(host,port)
不報異常則該端口是通的,可結合try進行使用im

相關文章
相關標籤/搜索