示例#1
0
def add_task(date, description):
    tasks[date].append(description)
    serialize_tasks(tasks)
示例#2
0
def add_task(date, description):
    tasks[date].append(description)
    serialize_tasks(tasks)
示例#3
0
def read_tasks():
    try:
        tasks = deserialize_tasks()
    except IOError:
        serialize_tasks(tasks)
        return read_tasks()
示例#4
0
def read_tasks():
    try:
        tasks = deserialize_tasks()
    except IOError:
        serialize_tasks(tasks)
        return read_tasks()