首先来看一下产生黏包现象的一段代码: # server.py 服务端 import socket sk = socket.socket() sk.bind(('127.0.0.1',9000)) sk.listen() conn,addr = sk.accept() conn.send('hello,'.encode('utf-8')) conn.send('world'.encode('utf-8')) conn.recv(1024) conn.close() sk.close()…