Python调用系统通知
mnsd

Windows10实现

PYTHON
1
2
3
from win10toast import ToastNotifier
toast = ToastNotifier()
toast.show_toast(title="This is a title", msg="This is a message", icon_path=None, duration=10, threaded=True)

Linux实现

通过系统自带的命令notify-send发送通知

BASH
1
notify-send -a app-name -i icon-path title content

通过第三方包调用系统通知,如dunst

BASH
1
dunstify --action="replyAction,reply" "Message received"

通过Python调用os模块执行命令

PYTHON
1
2
import os
os.system(command)
 评论
评论插件加载失败
正在加载评论插件