字符串转为二进制

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

 

posted @ 2019-03-18 09:53  张仁国  阅读(461)  评论(0编辑  收藏  举报
目录代码