这个程序实现了一个简单的待办事项管理器,主要功能包括:
添加新的待办事项(包含任务内容和创建时间)
将指定事项标记为已完成
查看所有事项(显示完成状态和创建时间)
数据自动保存到 JSON 文件,下次打开时可恢复
程序使用了类的封装(TodoManager 类),实现了数据的持久化存储(JSON 文件操作),包含了异常处理,以及简单的命令行交互界面。用户可以通过数字选择操作,流程直观易懂。
This program implements a simple todo list manager with the following main features:
Add new todo items (including task content and creation time)
Mark specified items as completed
View all items (showing completion status and creation time)
Data is automatically saved to a JSON file and can be restored when reopened
The program uses class encapsulation (TodoManager class), implements persistent data storage (JSON file operations), includes exception handling, and has a simple command-line interface. Users can select operations via numbers, making the process intuitive and easy to understand