
Wpis użytkownika Analny_Banita w Hydepark
Analny_BanitaMocarz
151piorunówKomentarze (6)
Witam, jeśli dzieock, starcisz srebro. Serdecznie.
Może się nie znam, ale nie powinno być tak?:
>import datetime
>import requests
>
>def get_sunrise_sunset():
>try:
>response = requests.get("https://www.timeanddate.com/sun/poland/?month=8")
>if response.status_code == 200:
>
>content = response.text
>sunrise_index = content.find("Sunrise Today:")
>sunset_index = content.find("Sunset Today:")
>sunrise_time = content[sunrise_index + 14 : sunrise_index + 19]
>sunset_time = content[sunset_index + 13 : sunset_index + 18]
>return sunrise_time, sunset_time
>else:
>return None, None
>except Exception as e:
>return None, None
>
>
>teraz = datetime.datetime.now()
>
>wschod, zachod = get_sunrise_sunset()
>
>if wschod and zachod:
>wschod = datetime.datetime.strptime(wschod, "%I:%M %p")
>zachod = datetime.datetime.strptime(zachod, "%I:%M %p")
>
>if x == "dziecko" and y > 36.6 and zachod < teraz < wschod:
>print("witam")
>else:
>return
>else:
>return
@entropy_ kod na takie 3+ bo działa ale nigdy bym tak tego nie napisał
Komentarz usunięty
@entropy_ aj aj aj aj aj...
section .data
message db 'Witam', 0
section .text
global _start
_start:
mov ax, 366
cmp ax, 366
jle .end_if
mov rax, 1
mov rdi, 1
mov rsi, message
mov rdx, 5
syscall
.end_if:
mov rax, 60
xor rdi, rdi
syscall
Szach 😉