运行代码前请先安装win10toast库
命令:pip install win10toast
可使用pyinstaller库打包成exe
安装pyinstaller
命令:pip install pyinstaller
使用pyinstaller打包exe
命令:pyinstaller tese.py
import time
from win10toast import ToastNotifier
toaster = ToastNotifier()
while True:
current_time = time.strftime("%H:%M")
if current_time

最低0.47元/天 解锁文章
2320

被折叠的 条评论
为什么被折叠?



