摘要: Python之FTP实现 上传下载: 1 import socket 2 import struct 3 import json 4 import subprocess 5 import os 6 7 class MYTCPServer: 8 address_family = socket.AF_I 阅读全文
posted @ 2018-07-16 16:09 王先生是胖子 阅读(501) 评论(0) 推荐(0) 编辑
摘要: Python之粘包 让我们基于tcp先制作一个远程执行命令的程序(1:执行错误命令 2:执行ls 3:执行ifconfig) 注意注意注意: res=subprocess.Popen(cmd.decode('utf-8'), shell=True, stderr=subprocess.PIPE, s 阅读全文
posted @ 2018-07-16 16:08 王先生是胖子 阅读(331) 评论(0) 推荐(0) 编辑