Pinned Loading
-
determina fecha actual, dia correspo...
determina fecha actual, dia correspondiente a la semana y agrega un nuevo dia habil [Python] 1from datetime import date , datetime, timedelta
23def calcula_fecha():
4hoy = date.today()
5dia_semana = hoy.weekday() # 0 = lunes, 1 = martes ,2=miercoles , 3=jueves, 4=viernes +++++++ 5=sabado, 6 =domingo. ++++++++++
-
Ping a host - Windows + Python
Ping a host - Windows + Python 1import os, platform, subprocess
2from dotenv import load_dotenv
34load_dotenv() #Carga de archivo ".env", con formato equipos=xxx.xxx.xxx.001,xxx.xxx.xxx.002
5lista_ips = os.getenv("equipos").split(',')
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.