📜  crontab python 脚本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:35.898000             🧑  作者: Mango

代码示例2
#!/usr/bin/env python3
#-*- coding: utf-8 -*-

import subprocess

def sendmessage(message="drink water"):
    subprocess.Popen(['notify-send', message])
    return

if __name__ == '__main__':
    sendmessage()