client客户端
复制代码 代码如下:
if name == 'main':
import socket
import os
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('localhost', 8001))
import time
time.sleep(2)
sock.send('1')
print sock.recv(1024)
#os.system('pause')
#raw_input()
time.sleep(3)
sock.close()
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8