?
=?gb2312?B?1cXWvsP3?=
code below cannt work
import getpass
import sys
import telnetlib
import select
tn = telnetlib.Telnet()
print tn.open("162.105.31.222",23)
print tn.read_eager()
print "ok"
output is:
------------
None
ok
------------
the host is avaiable,but my python program cannt connect to it ,why?
import getpass
import sys
import telnetlib
import select
tn = telnetlib.Telnet()
print tn.open("162.105.31.222",23)
print tn.read_eager()
print "ok"
output is:
------------
None
ok
------------
the host is avaiable,but my python program cannt connect to it ,why?