if not data or data.decode('utf-8') == 'exit': break sock.send(('Hello,%s!' % data.decode('utf-8')).encode('utf-8'))
廖老师,send中的data加上decode吧:)
我就觉得奇怪,发现果然有人也遇到同样问题了~
已加上
Sign in to make a reply
---狐狸糊涂---
廖老师,send中的data加上decode吧:)