关于服务器的问题~~求救???
from socket import *from time import ctime
HOST = '1-0cca0f9287ec4.'
PORT = 2188
BUFSIZ = 1024
ADDR = (HOST,PORT)
tcpSerSock = socket(AF_INET,SOCK_STREAM)
tcpSerSock.bind(ADDR)
tcpSerSock.listen(5)
while True:
print 'waiting for connection...'
tcpCliSock,addr = tcpSerSock.accept()
print '...connected from:',addr
while True:
data = tcpCliSock.recv(BUFSIZ)
if not data:
break
tcpCliSock.send('[%s] %s' %(ctime(),data))
#tcpCliSock.close()
tcpSerSock.close()
把这代码放到其他电脑~~而其他电脑没有安装python的话 那这个代码就没有用了吗~~无法当做服务器了~~~~
该怎么解决呢~~另一台电脑一定要安装python 吗~~