conn, client_addr = phone.accept()print(conn)print(client_addr)print(‘got a new connection from %s‘ % (client_addr, ))
"""<socket.socket fd=4, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=(‘127.0.0.1‘, 8080), raddr=(‘127.0.0.1‘, 55925)>(‘127.0.0.1‘, 65197)got a new connection from (‘127.0.0.1‘, 65197)"""
原文地址:https://www.cnblogs.com/xiugeng/p/8820542.html
时间: 2024-10-18 20:03:18