摘要:
from socket import *HOST = 'localhost'BUFSIZE = 1024PORT = 21567def client_socket(): ADDR = (HOST, PORT) tcpclisock = socket(AF_INET, SOCK_STREAM) tcpclisock.connect(ADDR) while True: data = raw_input('>') if not data: break tcpclisock.send(data) da... 阅读全文