banner
[面包]MrTwoC

[面包]MrTwoC

你好,欢迎来到这个基于区块链的个人博客 名字:面包 / MrTwoc 爱好:跑步(5/10KM)、咖啡、游戏(MMORPG、FPS、Minecraft、Warframe) 兴趣方向:Rust、区块链、网络安全、量子信息(量子计算)、游戏设计与开发
bilibili
steam
email
github

Movie Information Maintenance (Command Line Version)

Course Address

Code Address

Overview

Movie information management tool, this is a code practice project following Teacher Yang Xu from B-Zhan, currently the code is divided into two parts, one responsible for organizing and saving movie information in txt format to json format, and the other responsible for managing movie information in json format, supporting the addition, deletion, modification, and querying of movie information.

The first part mainly implements the function of converting txt files to json files, using regular expressions to parse movie information, filtering out empty lines and invalid content, and utilizing the create library to achieve GUI-based txt file reading and json file saving.

The second part implements a simple login function and the addition, deletion, modification, and querying functions for movie information. User and admin roles are set, using the std library to create a .session file to store logged-in users, and performing role checks on the add, modify, and delete functions, where non-admin users cannot execute these actions.

The above is the main content of the course, and next I plan to further expand it by transferring the movie information in json to SQLite, as well as transferring the role information stored in the session to SQLite.

image

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.