客户端 import struct import json from socket import * client=socket(AF_INET,SOCK_STREAM) # client.connect(('121.36.98.49',8822)) client.connect(('127.0.0.1',8811)) while True: cmd=input('请输入命令(dw or up +文件)>>:').strip() if len(cmd) == 0:continue client…