python通过socket发送命令_python 使用socket远程发送命令并获得执行结果详解
#socket_server.pyimport socketimport osimport sysdef work():sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)sock.bind(('0.0.0.0',1000))sock.listen(5)while True:try:conn, addr = sock.accept()re...