Added ej02.py
This commit is contained in:
parent
338dbfc6c2
commit
8ddc5cf3f9
|
@ -0,0 +1,16 @@
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
|
||||||
|
def escribePunto():
|
||||||
|
for i in range(100):
|
||||||
|
print (".", end="",flush=True)
|
||||||
|
time.sleep(0.1)
|
||||||
|
return
|
||||||
|
|
||||||
|
print ("INICIO")
|
||||||
|
t = threading.Thread(target=escribePunto)
|
||||||
|
t.start()
|
||||||
|
|
||||||
|
for i in range(50):
|
||||||
|
print ("-", end="",flush=True)
|
||||||
|
time.sleep(0.2)
|
Loading…
Reference in New Issue