Skip to content

Commit d6acbc1

Browse files
update world
1 parent 779fa03 commit d6acbc1

File tree

1 file changed

+1
-54
lines changed

1 file changed

+1
-54
lines changed

Python_Basic/10_Clases_Objetos.py

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -275,57 +275,4 @@ def info_estudiante(self):
275275

276276
print("\n")
277277

278-
279-
import threading
280-
281-
def tarea():
282-
print("Ejecutando tarea en hilo por Angel Gomera:", threading.current_thread().name)
283-
284-
# Crear hilos
285-
hilo1 = threading.Thread(target=tarea)
286-
hilo2 = threading.Thread(target=tarea)
287-
288-
# Iniciar hilos
289-
hilo1.start()
290-
hilo2.start()
291-
292-
# Esperar que terminen
293-
hilo1.join()
294-
hilo2.join()
295-
296-
print("\n")
297-
298-
299-
# from PIL import Image, ImageFilter, ImageEnhance
300-
# import threading
301-
302-
# # Cargar imagen base
303-
# imagen_base = Image.open("imagen_original.jpg")
304-
305-
# # Función para aplicar efectos
306-
# def aplicar_efecto(nombre_efecto, funcion_efecto):
307-
# imagen_modificada = funcion_efecto(imagen_base.copy())
308-
# imagen_modificada.save(f"{nombre_efecto}.jpg")
309-
# print(f"{nombre_efecto} generado")
310-
311-
# # Lista de efectos con funciones
312-
# efectos = [
313-
# ("blanco_y_negro", lambda img: img.convert("L")),
314-
# ("bordes", lambda img: img.filter(ImageFilter.FIND_EDGES)),
315-
# ("brillo_alto", lambda img: ImageEnhance.Brightness(img).enhance(2.0)),
316-
# ("contraste_bajo", lambda img: ImageEnhance.Contrast(img).enhance(0.5)),
317-
# ("enfocado", lambda img: img.filter(ImageFilter.SHARPEN)),
318-
# ]
319-
320-
# # Crear y lanzar hilos
321-
# hilos = []
322-
# for nombre, funcion in efectos:
323-
# hilo = threading.Thread(target=aplicar_efecto, args=(nombre, funcion))
324-
# hilos.append(hilo)
325-
# hilo.start()
326-
327-
# # Esperar a que todos terminen
328-
# for hilo in hilos:
329-
# hilo.join()
330-
331-
# print("Todas las imágenes han sido procesadas.")
278+
# *========================* Fin de la Herencia Multiple *========================*

0 commit comments

Comments
 (0)