import socket import subprocess sk = socket.socket() sk.bind(('127.0.0.1',10800)) sk.listen() conn,addr = sk.accept() #内容 while 1: cmd = conn.recv(1024).decode('utf-8') # 接收的字节先解码,然后进系统命令 r = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE,std…