当前位置:编程学习 > python >>

Python通过Telnet访问指定端口

1
import telnetlib
2
 
3
HOST = "<put host name here>"
4
PORT = <put port here>
5
t = telnetlib.Telnet()
6
t.open(HOST,PORT)
7
 
8
.......other process..............
作者:JeffYu
补充:Web开发 , Python ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,