client.send('hello'.encode('utf-8')) client.send(bytes('hello',encoding='utf-8')) 转载于:https://www.cnblogs.com/zhangrenguo/p/10550489.html