python实现TCP上传文件
远端开一个TCP服务,本地连接上服务后,就可以上传本地的文件。
1、服务端receive_file_server.py
"""
@contact: 1
@file: receive_file_server.py
@time: 2025/11/20 21:29
@author: LDC
"""
import socket
import os
import json
import threading
import time
class TCPFileReceiver: