ejercicios/psp/threads/02.py

13 lines
223 B
Python

import threading
def escribeY():
for i in range(1000):
print (".", end="",flush=True)
return
print ("INICIO")
t = threading.Thread(target=escribeY)
t.start()
for i in range(1000):
print ("-", end="",flush=True)