摘要: #服务器端 # #客户端 # 阅读全文
posted @ 2019-01-04 11:58 我的jsj 阅读(534) 评论(0) 推荐(0) 编辑
摘要: #服务器端# import socketimport os# 创建传输任务def read_send_task(file_path, service_client_scoket): # 二进制方式打开源文件 with open(file_path, 'rb') as file: while True 阅读全文
posted @ 2019-01-04 11:48 我的jsj 阅读(338) 评论(0) 推荐(0) 编辑
摘要: import os# 获取文件名file_path = input("请输入要复制的文件地址:【例如】d:/test.txt")path_idx = file_path.rfind("/") # 路径标识截取file_path_1 = file_path[:path_idx + 1] # 截取路径f 阅读全文
posted @ 2019-01-04 11:36 我的jsj 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: import threadingimport osimport shutil# 创建拷贝任务def copy_work(source_dir, dest_dir, file_name): # 拼接文件名路径 source_file_path = source_dir + '/' + file_nam 阅读全文
posted @ 2019-01-04 11:21 我的jsj 阅读(2640) 评论(0) 推荐(0) 编辑