0

我尝试了这段代码,它以探测方式运行,但不会杀死 chrome 浏览器。我究竟做错了什么?

    import schedule
    import time

def job():
    print("Kill Chrome in Progress..")
    'pkill chrome'
    print("Sucessfully killed Chrome")
schedule.every(0.5).minutes.do(job)

while 1:
    schedule.run_pending()
    time.sleep(1)
4

0 回答 0