bug截图: 源码: 原因:python3和Python2在套接字返回值解码上有区别,把outputdata[i]后加上.encode() 参考:https://www.fujieace.com/python/str-bytes.html