Python编写的Socket服务器和客户端
Python编写的Socket服务器和客户端服务器端:#!/usr/bin/pythonimport sockethost="127.0.0.1"port=8123s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)s.bind((host,port))s.listen(2)try: while True: conn,add=s.accept() while True: ...