python socket客户端
#./usr/bin/env python
#coding:utf-8
import socket
#.....ip...
print ('server start...')
ip_port = ('144.32.64.162',12152)
#......
sk = socket.socket()
#.......
sk.connect(ip_port)
print ('......')
#....
sk.sendall('812201&20170119&127&6217993000000000102&04&6250502004248191&01&341204198603050411&18112997250&..&1&01&&1&0&$')
print ('......')
#....
server_reply = sk.recv(1024)
#.......
print (server_reply)
#....
sk.close()