W
那java换成python呢
openmv的HOST需要改成运行python代码的ip
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(('0.0.0.0', 12345))
s.listen(10)
while True:
print "serber started"
client, addr = s.accept()
client.send(b'aaaaa')
client.close()