字符串转为二进制

client.send('hello'.encode('utf-8'))
client.send(bytes('hello',encoding='utf-8'))

猜你喜欢

转载自www.cnblogs.com/zhangrenguo/p/10550489.html