From 1819abaadbd3ff5bdbd52c8e99ec10d6ea159c26 Mon Sep 17 00:00:00 2001
From: kun <13098278+w52020031129@user.noreply.gitee.com>
Date: Wed, 5 Jun 2024 14:26:51 +0800
Subject: [PATCH] 6-5
---
BookDouban250.csv | 62 +--
GUI.py | 6 +-
book_analysis.html | 1130 --------------------------------------------
book_data.xlsx | Bin 8694 -> 0 bytes
sql.py | 4 +-
visualization.py | 57 +--
6 files changed, 67 insertions(+), 1192 deletions(-)
delete mode 100644 book_analysis.html
delete mode 100644 book_data.xlsx
diff --git a/BookDouban250.csv b/BookDouban250.csv
index 07997eb..836fcf7 100644
--- a/BookDouban250.csv
+++ b/BookDouban250.csv
@@ -1,76 +1,76 @@
书名,豆瓣链接,作者,译者,出版社,出版日期,价格,评分,评分人数,一句话评价
红楼梦,https://book.douban.com/subject/1007305/,[清] 曹雪芹 著 ,, 人民文学出版社 , 1996-12 , 59.70元,9.6,"(
- 424932人评价
+ 425007人评价
)",都云作者痴,谁解其中味?
活着,https://book.douban.com/subject/4913064/,余华 ,, 作家出版社 , 2012-8 , 20.00元,9.4,"(
- 835699人评价
+ 835840人评价
)",生的苦难与伟大
1984,https://book.douban.com/subject/4820710/,[英] 乔治·奥威尔 , 刘绍铭 , 北京十月文艺出版社 , 2010-4-1 , 28.00,9.4,"(
- 285264人评价
+ 285320人评价
)",栗树荫下,我出卖你,你出卖我
哈利·波特,https://book.douban.com/subject/24531956/,J.K.罗琳 (J.K.Rowling) , 苏农 , 人民文学出版社 , 2008-12-1 , 498.00元,9.7,"(
- 107828人评价
+ 107868人评价
)",从9¾站台开始的旅程
三体全集,https://book.douban.com/subject/6518605/,刘慈欣 ,, 重庆出版社 , 2012-1 , 168.00元,9.5,"(
- 188309人评价
+ 188363人评价
)",地球往事三部曲
百年孤独,https://book.douban.com/subject/6082808/,[哥伦比亚] 加西亚·马尔克斯 , 范晔 , 南海出版公司 , 2011-6 , 39.50元,9.3,"(
- 426699人评价
+ 426786人评价
)",魔幻现实主义文学代表作
飘,https://book.douban.com/subject/1068920/,[美国] 玛格丽特·米切尔 , 李美华 , 译林出版社 , 2000-9 , 40.00元,9.3,"(
- 212872人评价
+ 212909人评价
)",革命时期的爱情,随风而逝
动物农场,https://book.douban.com/subject/2035179/,[英] 乔治·奥威尔 , 荣如德 , 上海译文出版社 , 2007-3 , 10.00元,9.3,"(
- 160481人评价
+ 160510人评价
)",太阳底下并无新事
房思琪的初恋乐园,https://book.douban.com/subject/27614904/,林奕含 ,, 北京联合出版公司 , 2018-2 , 45.00元,9.2,"(
- 380731人评价
+ 380830人评价
)",向死而生的文学绝唱
三国演义(全二册),https://book.douban.com/subject/1019568/,[明] 罗贯中 ,, 人民文学出版社 , 1998-05 , 39.50元,9.3,"(
- 168841人评价
+ 168867人评价
)",是非成败转头空
福尔摩斯探案全集(上中下),https://book.douban.com/subject/1040211/,[英] 阿·柯南道尔 , 丁钟华 等 , 群众出版社 , 1981-8 , 53.00元/68.00元,9.3,"(
- 133838人评价
+ 133853人评价
)",名侦探的代名词
白夜行,https://book.douban.com/subject/10554308/,[日] 东野圭吾 , 刘姿君 , 南海出版公司 , 2013-1-1 , 39.50元,9.2,"(
- 476505人评价
+ 476626人评价
)",一宗离奇命案牵出跨度近20年步步惊心的故事
小王子,https://book.douban.com/subject/1084336/,[法] 圣埃克苏佩里 , 马振骋 , 人民文学出版社 , 2003-8 , 22.00元,9.1,"(
- 757307人评价
+ 757389人评价
)",献给长成了大人的孩子们
安徒生童话故事集,https://book.douban.com/subject/1046209/,(丹麦)安徒生 , 叶君健 , 人民文学出版社 , 1997-08 , 25.00元,9.3,"(
- 132988人评价
+ 133006人评价
)",为了争取未来的一代
天龙八部,https://book.douban.com/subject/1255625/,金庸 ,, 生活·读书·新知三联书店 , 1994-5 , 96.00元,9.2,"(
- 133163人评价
+ 133183人评价
)",有情皆孽,无人不冤
-呐喊,https://book.douban.com/subject/1449351/,鲁迅 ,, 人民文学出版社 , 1973-3 , 0.36元,9.2,"(
- 160877人评价
- )",新文学的第一声呐喊
撒哈拉的故事,https://book.douban.com/subject/1060068/,三毛 ,, 哈尔滨出版社 , 2003-8 , 15.80元,9.2,"(
- 175517人评价
+ 175560人评价
)",游荡的自由灵魂
-悉达多,https://book.douban.com/subject/26980487/,[德] 赫尔曼·黑塞 , 姜乙 , 天津人民出版社 , 2017-1 , 32.00元,9.3,"(
- 106870人评价
- )",
+呐喊,https://book.douban.com/subject/1449351/,鲁迅 ,, 人民文学出版社 , 1973-3 , 0.36元,9.2,"(
+ 160916人评价
+ )",新文学的第一声呐喊
邓小平时代,https://book.douban.com/subject/20424526/,【美】傅高义 (Ezra.F.Vogel) , 冯克利 , 生活·读书·新知三联书店 , 2013-1-18 , 88.00元,9.3,"(
- 71166人评价
+ 71200人评价
)",个人命运背后的历史变局
+悉达多,https://book.douban.com/subject/26980487/,[德] 赫尔曼·黑塞 , 姜乙 , 天津人民出版社 , 2017-1 , 32.00元,9.3,"(
+ 107052人评价
+ )",
杀死一只知更鸟,https://book.douban.com/subject/6781808/,[美] 哈珀·李 , 高红梅 , 译林出版社 , 2012-9 , 32.00元,9.2,"(
- 147222人评价
+ 147243人评价
)",有一种东西不能遵循从众原则,那就是——人的良心
-明朝那些事儿(1-9),https://book.douban.com/subject/3674537/,当年明月 ,, 中国海关出版社 , 2009-4 , 358.20元,9.2,"(
- 175585人评价
- )",不拘一格的历史书写
失踪的孩子,https://book.douban.com/subject/30172069/,[意] 埃莱娜·费兰特 , 陈英 , 人民文学出版社 , 2018-7 , 62.00元,9.2,"(
- 81962人评价
+ 81991人评价
)",我的整个生命,只是一场为了提升社会地位的低俗斗争。
+明朝那些事儿(1-9),https://book.douban.com/subject/3674537/,当年明月 ,, 中国海关出版社 , 2009-4 , 358.20元,9.2,"(
+ 175633人评价
+ )",不拘一格的历史书写
新名字的故事,https://book.douban.com/subject/26986954/,[意] 埃莱娜·费兰特 , 陈英 , 人民文学出版社 , 2017-4 , 59.00元,9.2,"(
- 92527人评价
+ 92565人评价
)",探索青年时代的激情、困惑、挣扎、背叛和失去
野草,https://book.douban.com/subject/1915958/,鲁迅 ,, 人民文学出版社 , 1973-3 , 0.20元,9.5,"(
- 47638人评价
+ 47666人评价
)",我以这一丛野草,在明与暗,生与死,过去与未来之际,献于友与仇,人与兽,爱者与不爱者之前作证。
沉默的大多数,https://book.douban.com/subject/1054685/,王小波 ,, 中国青年出版社 , 1997-10 , 27.00元,9.1,"(
- 151786人评价
+ 151806人评价
)",沉默是沉默者的通行证
diff --git a/GUI.py b/GUI.py
index fe15124..93008f3 100644
--- a/GUI.py
+++ b/GUI.py
@@ -19,9 +19,11 @@ class Book:
self.pub_year = pub_year
self.price = price
self.comment = comment
-db = sql.BookDatabase(host='localhost', user='root', password='123456', database='xiaosuo', table_name='books')
-db.initialize_table()
+# db = sql.BookDatabase(host='localhost', user='root', password='123456', database='xiaosuo', table_name='books')
+# db.initialize_table()
def show():
+ db = sql.BookDatabase(host='localhost', user='root', password='123456', database='xiaosuo', table_name='books')
+ db.initialize_table()
data = db.get_book_list()
book_list_data = []
for book in data:
diff --git a/book_analysis.html b/book_analysis.html
deleted file mode 100644
index a736f44..0000000
--- a/book_analysis.html
+++ /dev/null
@@ -1,1130 +0,0 @@
-
-
-
-
- Awesome-pyecharts
-
-
-
-
-
-
-
-
-
-
-
diff --git a/book_data.xlsx b/book_data.xlsx
deleted file mode 100644
index 3a6e0cff6e9ed409e79db717dcf208ebb56a64f3..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 8694
zcmZ`<1yCGWw;tSGg1fsr!7{i*(BMpP9c<7*a0~7d9D>8(?iO5w6C8pk1kYo4Yv2Bx
z_rLDy?&_-kPM>?~JLld$U#ly@!Q%q}0AxT!X`h~~K@WP+^Ih%pf&F|~I$5Z@Iyr+m
z&77S%yd3ORVpY(3xv*dTQaoI9e0@&EO*L1rIpQNPC=h2U;}P=UtJU*iMQoibx|Lv5
zub^YNLrR#sx3FuO{(2hY{+6eWuw!r8A4a$9fJD5{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