Book Collection

Essential Netty in Action 《Netty 实战(精髓)》

https://github.com/waylau/essential-netty-in-action

Essential Netty in Action 《Netty 4.x 用户指南》

https://github.com/waylau/netty-4-user-guide

Distributed Java.《分布式 Java》

https://waylau.gitbooks.io/distributed-java/

架构风格与基于网络应用软件的架构设计

http://yuedu.baidu.com/ebook/780324fbf121dd36a32d8269.html?f=read

Elasticsearchearch 权威指南(中文版)

https://github.com/looly/elasticsearch-definitive-guide-cn

Spring Data Elastics

https://es.yemengying.com/

Ansible中文权威指南

http://www.ansible.com.cn/

Kubernetes中文社区 | 中文文档

http://docs.kubernetes.org.cn/

 

 

大数据技术相关的个人讲义

https://github.com/tianyeshiye/MyCourse

You are asked to design and implement a Python-based system for managing a small library. The system should support the following core tasks, including manage users of different types (students, staff, and other members), manage the collection of books in the library and track and update loan records for borrowed books. Description The library has provided you with three CSV files containing its current data in the data folder: users.csv for user information, books.csv for book information and loans.csv containing loan history. In Task 1-3, you can assume all CSV files contain valid data. You are allowed to modify the import statements in the scaffold or move the import statements to different modules if required; but you are not allowed to import any modules which weren't originally imported in the scaffold. Users (users.csv) This file contains details of all registered users: Fields: user ID, password, name, role, and department (for students and staff only). User types: Student (s prefix in the user ID) Staff (e prefix in the user ID) Others (o prefix in the user ID) Each user type follows specific borrowing policies: Users Physical book Online Quota Student 10 days Unlimited 4 Staff 14 days Unlimited 6 Other 7 days Unlimited 2 Users Student Staff Other ​ Physical book 10 days 14 days 7 days ​ Online Unlimited Unlimited Unlimited ​ Quota 4 6 2 ​ ​ All users can borrow, return, and renew books, as well as view their active loans and loan policies. Only staff can add, update, or view detailed information about users and books. (More detail in Task 2-3). Books (books.csv) This file contains information about books in the collection: Fields: book ID, type (e.g., physical or online), total copies, title, authors, year, and keywords (colon-separated). Each book has a unique ID beginning with a character that denotes its category, followed by 4 digits. Physical books are identified by the prefix P in the Book ID. Online books (e-book) are identified by the prefix E in the Book ID. For online books, the total copies field is always 0. Loans (loans.csv) This file contains borrowing records: Fields: user ID, book ID, borrow date, due date, returned date. All dates are in the following format dd/mm/yyyy. The due date is automatically calculated based on loan policy. Active loans are those without a returned date. Your Task Write a program that reads users, books and loans from files users.csv, books.csv and loans.csv and a simple menu that allow interaction with the data. You are provided with 3 modules: user.py, book.py and task1.py. Your task is to Complete the implementation User and Book class in the users.py and books.py modules. You are allowed to add additional classes and functions if necessary. Implement the interaction menu in task1.py Login Menu When the program starts, the user is prompted to log in with their ID and password. If the user id does not exist or user id and password does not match, the program will print "Invalid credentials. x attempt(s) remaining." and prompt user to login again. Successful login displays a welcome message with the user's name and role. Users have three login attempts before the program prints a message "Sorry you're out of attempts. Please contact your librarian for assistance." and back to welcome and login menu. In the login menu, user can type "quit" to terminate the program. Welcome to Library Login as: s31267 Password: chr1267 Logged in as Chris Manner (Student) Main menu Once logged in, users see a personalized main menu based on their role. For student, other users, and staff members outside the Library department: Logged in as Chris Manner (Student) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: For staff from the Library department: Logged in as Mary Alan (Staff) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans 4. Library Report ================================== Enter your choice: A user's input may provide incorrect choice, e.g. 5 or four. In this case your program should prompt for input again. 0. Quit The program will print the message: "Goodbye!", and terminates. 1. Log out The user is logged out and returned to the welcome screen and login menu. 2. View account policies Upon entering 2, the program will display user current membership policies, and their total loans. Logged in as Chris Manner (Student) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 2 Student Chris Manner. Policies: maximum of 10 days, 4 items. Current loans: 2 (1 physical / 1 online). 3. View my loans Upon entering 3, the program will display all active loans (sorted by due date). Active loans are those without a returned date. Logged in as Chris Manner (Student) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 3 You are currently have 2 loan(s). 1. P0006 'Hands-On ML' by Aurelien Geron (2019). Due date: 13/09/2025. 2. E0001 'Python Crash Course' by Eric Matthes (2015). Due date: 15/09/2025. 4. Library Report (Library Staff only) Upon entering 4, library staff can access a summary report of the library. This report provides key statistics, including the total number of users (with a breakdown by role), as well as details about the book collection and available books which currently have one or more copies available. Logged in as Mary Alan (Staff) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans 4. Library Report ================================== Enter your choice: 4 Library Report - 9 users, including 4 student(s), 3 staff and 2 others. - 14 books, including 10 physical book(s) (7 currently available) and 4 online book(s). Examples User inputs are in bold font below. Example 1 Welcome to Library Login as: s312 Password: chr1267 Invalid credentials. 2 attempt(s) remaining. Login as: s31267 Password: chr12 Invalid credentials. 1 attempt(s) remaining. Login as: s31267 Password: chr126 Sorry you're out of attempts. Please contact your librarian for assistance. Welcome to Library Login as: quit Goodbye! Example 2 Welcome to Library Login as: s31267 Password: chr1267 Logged in as Chris Manner (Student) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 2 Student Chris Manner. Policies: maximum of 10 days, 4 items. Current loans: 2 (1 physical / 1 online). ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 3 You are currently have 2 loan(s). 1. P0006 'Hands-On ML' by Aurelien Geron (2019). Due date: 13/09/2025. 2. E0001 'Python Crash Course' by Eric Matthes (2015). Due date: 15/09/2025. ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 0 Goodbye! Example 3 Welcome to Library Login as: e118102 Password: pa55word Logged in as Mary Alan (Staff) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans 4. Library Report ================================== Enter your choice: 4 Library report - 9 users, including 4 student(s), 3 staff, and 2 others. - 14 books, including 10 physical book(s) (7 currently available) and 4 online book(s). ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans 4. Library Report ================================== Enter your choice: 5 Enter your choice: 3 You are currently have 1 loan(s). 1. P0004 'The Hitchhiker's Guide to the Galaxy' by Douglas Adams (1985). Due date: 17/09/2025. ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans 4. Library Report ================================== Enter your choice: 0 Goodbye! Example 4 Welcome to Library Login as: o56789 Password: hackme Logged in as Chloe (Others) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 2 Others Chloe. Policies: maximum of 7 days, 2 items. Current loans: 0 (0 physical / 0 online). ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 3 You are currently have 0 loan(s). ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 0 Goodbye! Example 5 Login as: e45261 Password: readmore Logged in as Lan Nguyen (Staff) ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 2 Staff Lan Nguyen. Policies: maximum of 14 days, 6 items. Current loans: 1 (1 physical / 0 online). ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 3 You are currently have 1 loan(s). 1. P0019 'Principles of Marketing' by Philip Kotler (2016). Due date: 21/09/2025. ================================== My Library Account 0. Quit 1. Log out 2. View account policies 3. View my loans ================================== Enter your choice: 0 Goodbye!from abc import ABC, abstractmethod import csv import datetime import re class User(ABC): # Your code goes here passimport csv import datetime import re class Book: # your code goes hereimport user import book import csv import datetime import typing def main(user_file: str, book_file:str, loan_file:str) -> None: """ This is the entry of your program. Please DO NOT modify this function signature, i.e. function name, parameters Parameteres: - user_file (str): path the `users.csv` which stores user information - book_file (str): path the `books.csv` which stores book information - loan_file (str): path the `loans.csv` which stores loan information """ # Your implemetation goes here pass if __name__ == "__main__": main('data/users.csv', 'data/books.csv', 'data/loans.csv')
10-11
内容概要:本文档是一份关于“超声谐波成像中幅超声谐波成像中幅度调制聚焦超声引起的全场位移和应变的分析模型(Matlab代码实现)度调制聚焦超声引起的全场位移和应变的分析模型”的Matlab代码实现研究资料,重点构建了一个用于分析在超声谐波成像过程中,由幅度调制聚焦超声所引发的生物组织全场位移与应变的数学模型。该模型通过Matlab仿真手段实现了对声场激励下组织力学响应的精确计算与可视化,有助于深入理解超声激励与组织变形之间的物理机制,提升超声弹性成像的精度与可靠性。文档还附带多个相关科研领域的Matlab/Simulink代码实例,涵盖无人机控制、路径规划、电力系统仿真、信号处理、机器学习等多个方向,展示了强大的技术支撑与应用拓展能力。; 适合人群:具备Matlab编程基础,从事医学超声成像、生物力学建模、信号与图像处理等相关领域研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①用于超声弹性成像中组织力学响应的仿真与分析;②为开发新型超声诊断技术提供理论模型与算法支持;③作为多物理场耦合仿真的教学与研究案例,促进跨学科技术融合。; 阅读建议:建议读者结合Matlab代码逐行理解模型实现细节,重点关注声场建模、组织力学方程求解及位移应变后处理部分。同时可参考文档中提供的其他仿真案例,拓宽研究思路,提升综合科研能力。
标题基于SpringBoot的高校餐饮档口管理系统设计与实现AI更换标题第1章引言介绍高校餐饮档口管理系统的研究背景、意义、国内外现状及论文方法与创新点。1.1研究背景与意义阐述高校餐饮档口管理现状及系统开发的重要性。1.2国内外研究现状分析国内外高校餐饮管理系统的研究与应用进展。1.3研究方法及创新点概述本文采用的研究方法及系统设计的创新之处。第2章相关理论总结与高校餐饮档口管理系统相关的现有理论。2.1SpringBoot框架理论阐述SpringBoot框架的原理、优势及其在Web开发中的应用。2.2数据库设计理论介绍数据库设计的基本原则、方法和步骤。2.3系统安全理论讨论系统安全设计的重要性及常见安全措施。第3章系统需求分析对高校餐饮档口管理系统的功能需求、性能需求等进行详细分析。3.1功能需求分析列举系统需实现的主要功能,如档口管理、订单处理等。3.2性能需求分析分析系统对响应时间、并发处理能力等性能指标的要求。3.3非功能需求分析阐述系统对易用性、可维护性等非功能方面的需求。第4章系统设计详细描述高校餐饮档口管理系统的设计过程。4.1系统架构设计给出系统的整体架构,包括前端、后端和数据库的设计。4.2模块设计详细介绍各个功能模块的设计,如用户管理、档口信息管理等。4.3数据库设计阐述数据库表结构的设计、数据关系及索引优化等。第5章系统实现与测试介绍高校餐饮档口管理系统的实现过程及测试方法。5.1系统实现系统各模块的具体实现过程,包括代码编写和调试。5.2系统测试方法介绍系统测试的方法、测试用例设计及测试环境搭建。5.3系统测试结果与分析从功能、性能等方面对系统测试结果进行详细分析。第6章结论与展望总结本文的研究成果,并展望未来的研究方向。6.1研究结论概括高校餐饮档口管理系统的设计与实现成果。6.2展望指出系统存在的不足及未来改进和扩展的方向。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值