From 7502d2ecd9a40582e241ff3076f5af879f5479fc Mon Sep 17 00:00:00 2001 From: nesosuke Date: Sun, 22 Mar 2020 02:13:43 +0900 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E7=89=88=E5=B9=B4=E6=9C=88=E6=97=A5?= =?UTF-8?q?=E3=82=92=E5=88=86=E3=81=91=E3=81=A6=E4=BF=9D=E6=8C=81=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openbd_api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openbd_api.py b/openbd_api.py index 992bc05..0aa1822 100644 --- a/openbd_api.py +++ b/openbd_api.py @@ -9,11 +9,13 @@ Title = BookInfo.get("title") Author = BookInfo.get("author") Publisher = BookInfo.get("publisher") -Published_at = BookInfo.get("pubdate") +Published_at_yyyy = BookInfo.get("pubdate")[0:4] +Published_at_mm = BookInfo.get("pubdate")[4:6] +Published_at_dd = BookInfo.get("pubdate")[6:8] Cover = BookInfo.get("cover") print(Title) print(Author) print(Publisher) -print(Published_at) +print(Published_at_yyyy + "." + Published_at_mm + "." + Published_at_dd) print(Cover) \ No newline at end of file