摘要:
#服务器端 # #客户端 # 阅读全文
摘要:
#服务器端# import socketimport os# 创建传输任务def read_send_task(file_path, service_client_scoket): # 二进制方式打开源文件 with open(file_path, 'rb') as file: while True 阅读全文
摘要:
import os# 获取文件名file_path = input("请输入要复制的文件地址:【例如】d:/test.txt")path_idx = file_path.rfind("/") # 路径标识截取file_path_1 = file_path[:path_idx + 1] # 截取路径f 阅读全文
摘要:
import threadingimport osimport shutil# 创建拷贝任务def copy_work(source_dir, dest_dir, file_name): # 拼接文件名路径 source_file_path = source_dir + '/' + file_nam 阅读全文