[Python版本]3.6 [遇到的问题] 客户端和服务器端都遇到:TypeError: a bytes-like object is required, not 'str' [解决方案] 参考:https://stackoverflow.com/questions/13274553/python-3-3-socket-typeerror 创建TCP服务器端: from socket import * from time import ctime host = '' port = 21563 b…