-
大小: 0.45M文件類型: .rar金幣: 2下載: 7 次發(fā)布日期: 2021-01-30
- 語言: Python
- 標簽: PyQt5??管理系統(tǒng)??圖書管理??Qt5??
資源簡介
pyqt5圖書管理系統(tǒng)
python pyqt5搭建一個圖書管理系統(tǒng)
終于第一個版本發(fā)布上來了,基本實現(xiàn)都比較簡陋
### 開始
#### 安裝依賴
```sh
pip install PyQt5 -i https://pypi.douban.com/simple
pip install pymysql -i https://pypi.douban.com/simple
```
#### 安裝數(shù)據(jù)庫
安裝任意一種服務器類型數(shù)據(jù)庫即可[Mariadb下載](https://mariadb.org/)
#### 創(chuàng)建數(shù)據(jù)庫以及建表
進入項目根目錄`cd BookManage`,運行`python generate_data.py`生成數(shù)據(jù)庫文件
#### 修改數(shù)據(jù)庫的連接屬性
進入util->dbutil文件,修改里面的數(shù)據(jù)庫連接屬性。
#### 運行
進入到項目的根目錄下,
`python run.py`
既可以運行項目。
### 包含功能
1. 權(quán)限分級
- 普通用戶
- 管理員用戶
2. 普通用戶
- 借書
- 還書
- 續(xù)借
3. 管理員用戶
- 添加圖書
- 編輯圖書
- 刪除圖書
- 催還
代碼片段和文件信息
“““
coding:utf-8
file:?frozen_dir.py
@author:?jiangwei
@contact:?jiangwei_1994124@163.com
@time:?2020/5/9?21:28
@desc:
“““
import?sys
import?os
def?app_path():
????if?hasattr(sys?‘frozen‘):
????????return?os.path.dirname(sys.executable)
????return?os.path.dirname(__file__)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1209??2020-06-27?10:17??BookManage-master\.gitignore
?????文件????????293??2020-06-27?10:17??BookManage-master\frozen_dir.py
?????文件???????4277??2020-06-27?10:17??BookManage-master\generate_data.py
?????文件??????11357??2020-06-27?10:17??BookManage-master\LICENSE
?????文件???????1291??2020-06-27?10:17??BookManage-master\README.md
?????文件???????4075??2020-06-27?10:17??BookManage-master\res\img\app-icon.png
?????文件???????7840??2020-06-27?10:17??BookManage-master\res\img\borrow_book.png
?????文件??????67646??2020-06-27?10:17??BookManage-master\res\img\delay_time.ico
?????文件??????64574??2020-06-27?10:17??BookManage-master\res\img\delete.ico
?????文件???????4072??2020-06-27?10:17??BookManage-master\res\img\delete.png
?????文件???????4614??2020-06-27?10:17??BookManage-master\res\img\edit.png
?????文件?????336648??2020-06-27?10:17??BookManage-master\res\img\home.png
?????文件??????44606??2020-06-27?10:17??BookManage-master\res\img\push.ico
?????文件??????44942??2020-06-27?10:17??BookManage-master\res\img\return.ico
?????文件????????637??2020-06-27?10:17??BookManage-master\res\st
?????文件???????1345??2020-06-27?10:17??BookManage-master\res\st
?????文件???????1348??2020-06-27?10:17??BookManage-master\res\st
?????文件????????542??2020-06-27?10:17??BookManage-master\res\st
?????文件????????564??2020-06-27?10:17??BookManage-master\res\st
?????文件????????392??2020-06-27?10:17??BookManage-master\res\st
?????文件????????983??2020-06-27?10:17??BookManage-master\res\st
?????文件????????847??2020-06-27?10:17??BookManage-master\res\st
?????文件????????796??2020-06-27?10:17??BookManage-master\res\st
?????文件????????798??2020-06-27?10:17??BookManage-master\res\st
?????文件????????373??2020-06-27?10:17??BookManage-master\res\st
?????文件????????357??2020-06-27?10:17??BookManage-master\res\st
?????文件????????379??2020-06-27?10:17??BookManage-master\res\st
?????文件????????363??2020-06-27?10:17??BookManage-master\res\st
?????文件???????3897??2020-06-27?10:17??BookManage-master\res\st
?????文件????????355??2020-06-27?10:17??BookManage-master\run.py
............此處省略46個文件信息
- 上一篇:Python開發(fā)計算器-多功能版
- 下一篇:pyqt5俄羅斯方塊 源碼
評論
共有 條評論