使用python发送系统通知(适用于linux,windows等)

使用pip安装:

pip3 install plyer

使用方法:

from plyer import notification
notification.notify(
    title="test",					#标题
    message="aaaa",			#内容
    app_icon="None",		#图标
    timeout=1,					#通知持续时间
)
posted @ 2023-01-07 11:48  柠檬233  阅读(543)  评论(0)    收藏  举报