摘要:
import socket,struct,json,os DOWNLOAD_DIR=r'D:\python13期\网络编程\文件处理\DOWNLOAD' class FtpClient: def __init__(self,host,port): self.host=host self.port=p 阅读全文
摘要:
import socket,os,json,struct SHARE_DIR=r'D:\python13期\网络编程\文件处理\SHARE' class FtpServer: def __init__(self,host,port): self.host=host self.port=port se 阅读全文
摘要:
from socket import * import struct,json client=socket(AF_INET,SOCK_STREAM) client.connect(('127.2.2.2',6688)) while True: cmd=input('>>:').strip() if 阅读全文
摘要:
from socket import * import subprocess,struct,json server=socket(AF_INET,SOCK_STREAM) server.bind(('127.2.2.2',6688)) server.listen(5) while True: con 阅读全文