import socket
client = socket.socket()
client.connect(('localhost', 6969))
while True:
    msg = input('>>:').strip()
    if len(msg) == 0:
        continue
    client.send(msg.encode())
    date = client.recv(1024)
    print('来自服务器:', date.decode())
client.close()

b50dc347d35f603661469cb0b01cda9eff8d45fb
<mask token>

<mask token>
client.connect(('localhost', 6969))
while True:
    msg = input('>>:').strip()
    if len(msg) == 0:
        continue
    client.send(msg.encode())
    date = client.recv(1024)
    print('来自服务器:', date.decode())
client.close()

<mask token>
client = socket.socket()
client.connect(('localhost', 6969))
while True:
    msg = input('>>:').strip()
    if len(msg) == 0:
        continue
    client.send(msg.encode())
    date = client.recv(1024)
    print('来自服务器:', date.decode())
client.close()

import socket
client = socket.socket()
client.connect(('localhost', 6969))
while True:
    msg = input('>>:').strip()
    if len(msg) == 0:
        continue
    client.send(msg.encode())
    date = client.recv(1024)
    print('来自服务器:', date.decode())
client.close()
