client.send(‘hello‘.encode(‘utf-8‘)) client.send(bytes(‘hello‘,encoding=‘utf-8‘))
字符串转为二进制
原文:https://www.cnblogs.com/zhangrenguo/p/10550489.html