#encoding=utf-8
import socket,time
tcpT4Client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print "Done........"
tcpT4Client.connect(('192.168.0.150', 8000))
print "TCP IPv4 TCP mode connecting..."
while True:
time.sleep(1)
tcpT4Client.send('7E1501046601020000837E')
不知道怎么接受数据。。求指教
官方的例子改了一下: