🇪🇸 Python Practice 🐍💻⌨ https://github.com/activeceron
رفتن به کانال در Telegram
Docs, news, links, referencias de código y proyectos en Python para practicar y entender mejor este fascinante lenguaje. Recursos: @python_practice_books @MycroPython , @blocklycode, @miprochip_com @miproshop ¡Juega con Python y aprenderás!
نمایش بیشتر2 905
مشترکین
+324 ساعت
+57 روز
+3930 روز
آرشیو پست ها
import pyowm
# API key de OpenWeatherMap
api_key = "TU_API_KEY_AQUI"
# Crear objeto de la API
owm = pyowm.OWM(api_key)
# Obtener la ubicación actual del usuario
ubicacion = owm.weather_manager().weather_at_place('tu_ciudad')
# Obtener los datos meteorológicos actuales
clima = ubicacion.weather
# Imprimir información meteorológica
print(f"El clima actual en {ubicacion.location.name} es {clima.detailed_status}")
print(f"La temperatura actual es {clima.temperature('celsius')['temp']} grados Celsius")
Código en python para averiguar ip de la máquina.
import socket
# Obtiene el nombre de la máquina
hostname = socket.gethostname()
# Obtiene la dirección IP correspondiente al nombre de la máquina
ip_address = socket.gethostbyname(hostname)
print("Nombre de la máquina: " + hostname)
print("Dirección IP: " + ip_address)
Ver "👉Gráficos Interactivos con Python | Aplicación Web" en YouTube
https://youtu.be/WaIIcMjz5m8
اکنون در دسترس! پژوهش تلگرام ۲۰۲۵ — مهمترین بینشهای سال 
