I know how to print one line in same plase but I want to print same place from thread only.
Now I'm getting:
OK 97035
I want to get:
OK 97035 OK 92035
First line is from t1 thread, second from t2 thread. Anyone know how to do it ?
This is sample code.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import string, threading
def test():
    for i in range(0, 100000):
        print "\rOK "+str(i),
jczyd= ['1', '2']
while True:
        for i in jczyd:
                if i == '1':
                        #print i
                        t1 = threading.Thread(target=test, args = ())
                        t1.daemon = True
                        t1.start()
                elif i == '2':
                        #print i
                        t2 = threading.Thread(target=test, args = ())
                        t2.daemon = True
                        t2.start()
        t1.join()
        t2.join()