import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(("10.8.153.30",8081))
while True:
data = input("請輸入給伺服器發送的資料")
client.send(data.encode("utf-8"))
info = client.recv(1024)
print("伺服器說:",info)
import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(("10.8.153.30",8081))
while True:
data = input("請輸入給伺服器發送的資料")
client.send(data.encode("utf-8"))
info = client.recv(1024)
print("伺服器說:",info)