You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
319 B
13 lines
319 B
11 months ago
|
import logging
|
||
|
import threading
|
||
|
import time
|
||
|
def thread_Apellido(name):
|
||
|
print (name + " Rodríguez")
|
||
|
#print (name + " Rodríguez\n")
|
||
|
|
||
|
nombres = ["Julio", "Javier", "Eladio", "Jose", "Manuel"]
|
||
|
hilos = list()
|
||
|
for n in nombres:
|
||
|
t = threading.Thread(target=thread_Apellido, args=(n,))
|
||
|
hilos.append(t)
|
||
|
t.start()
|