关于python的socket问题运行出错,新手求大神指教!!
#__author__ = 'Administrator'
#coding=utf-8
import socket
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host=socket.gethostname()
port=2256
s.bind((host,port))
s.listen(5)
while True:
原创
2013-10-03 08:49:37 ·
1182 阅读 ·
0 评论