https://blog.csdn.net/zengchen__acmer/article/details/42424015中只讲了错误的情况,没有讲对的情况。
经过试验有可能是漏了sock.listen(1),括号中表示的是接受多少个客户端的连接