Python 通过Telnet 访问指定端口

import telnetlib

HOST = "<put host name here>"
PORT = <put port here>
t = telnetlib.Telnet()
t.open(HOST,PORT)

.......other process..............


你可能感兴趣的:(python,telnet)