uz
Feedback
🇪🇸 Python Practice 🐍💻⌨ https://github.com/activeceron

🇪🇸 Python Practice 🐍💻⌨ https://github.com/activeceron

Kanalga Telegram’da o‘tish

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!

Ko'proq ko'rsatish
2 905
Obunachilar
+324 soatlar
+57 kunlar
+3930 kunlar
Postlar arxiv
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