1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/python import socket s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(('localhost',9999)) def test(n): s.send(''.join(map(str,xrange(n)))[:n]) while True: n = int(raw_input('n?>')) test(n+34)