-1
while True:
now = datetime.datetime.now()
if now.weekday() == 5:
if now.hour() == 10 and now.minute() == 30:
webbrowser.open(url)
elif now.hour() == 7 and now.minute == 0:
webbrowser.open(url)
time.sleep(1)
'now.minute'和'now.hour'不是函數刪除這些調用的括號。 –
沒有工作,但仍然感謝! –