python的socket连接·
程序员文章站
2022-06-11 19:50:34
...
python的socket连接很简单:
import socket buffer= '01300000120090526101010000' s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('10.25.76.117',8088)) import time for i in range (1,2): s.send(buffer) ack = s.recv(4000) print "ack=",ack # time.sleep(30) s.close()