Python-100-Days/Day01-15/Day14-A/code/timeclient.py

13 lines
208 B
Python

from socket import socket
def main():
client = socket()
client.connect(('10.7.152.69', 6789))
print(client.recv(1024).decode('utf-8'))
client.close()
if __name__ == '__main__':
main()