python实现tcp/ip_python tcpip_张芮晨的博客-CSDN博客

网站介绍:文章浏览阅读982次。服务器端:import socketimport datetimeHOST='0.0.0.0'PORT=3434s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.bind((HOST,PORT))s.listen(1)while True: conn,addr=s.accept() print('Client %s connetced!' %str(addr)) dt=datetime.datetime.no_python tcpip