D)
Size: a a a
D)
AS
AS
D)
D)
PA
D)
D)
🚲U
schedule.every().minute.at(“:01”).do(save_links)
while True:
schedule.run_pending()
time.sleep(1)
Invalid time format for a minutely job
:for second in range(0,61):
second_in_XX_format = str(second).zfill(2)
formatted_second = ':'+second_in_XX_format+''
schedule.every().minute.at(f"{formatted_second}").do(save_links)
В
🚲U
schedule_every_5_sec
запускается только раз:count = 5
def func():
global count
while count > 0:
link_started_saving_at_time = time.time()
print("Text")
time.sleep(0.1)
print(time.time() - link_started_saving_at_time)
count -= 1
while True:
func()
time.sleep(1)
schedule_every_5_sec()
🚲U
schedule_every_5_sec
запускается только раз:count = 5
def func():
global count
while count > 0:
link_started_saving_at_time = time.time()
print("Text")
time.sleep(0.1)
print(time.time() - link_started_saving_at_time)
count -= 1
while True:
func()
time.sleep(1)
schedule_every_5_sec()
🚲U
ʞO
ʞO
🚲U