我想知道如何创建一个通知程序,可以存储一个以上的时间和用户从一个小图形用户界面输入的注释。这是我使用的最基本的代码:
from datetime import datetime
from threading import Timer
from tkinter import messagebox
from tkinter import *
from inputer import *
x = datetime.today()
y = x.replace(day=q, hour=w, minute=e, second=0, microsecond=0)
delta_t = y - x
secs = delta_t.seconds+1
def Note():
# in this function i put the commands to open
# a small window with the reminder/note
print("hello world")
#...
t = Timer(secs, Note)
t.start()
“inputer”是接收用户输入的文件。例如,如果我想在同一天得到2个提醒。我该如何编写代码?因为现在日期和时间的变量是固定的,不能在某个时间存储更多的信息。你知道吗
我是一个新的编码抱歉,如果这个问题似乎愚蠢的xd (使用python btw)
澄清后,我认为这将是最好的,你有多个时间戳,你可以存储在一个列表或字典
列表
字典
相关问题 更多 >
编程相关推荐