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.
14 lines
320 B
14 lines
320 B
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() |