From 238dc0d8f3ce2f0dec2169496cc52cbac992fcd9 Mon Sep 17 00:00:00 2001 From: LibraHp_0928 <1941163264@qq.com> Date: Fri, 13 Sep 2024 10:40:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=B8=8D=E6=AD=A3=E7=A1=AE=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .DS_Store | Bin 6148 -> 0 bytes main.py | 5 +++-- resource/.DS_Store | Bin 6148 -> 0 bytes util/RequestUtil.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) delete mode 100644 .DS_Store delete mode 100644 resource/.DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 63066dbb02fdd905804c353871d07efac9a61727..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%TB{E5FA4fk+}58(SH!}2UbbdOT|MKoGCOCNR(7fatNn1;juJUMGU+Y_6J#Py<3s1Ggy9LPR$8J+6)qBAZe>=k7evBz|xT?8T_))@nT Gz`z$1EH?B2 diff --git a/main.py b/main.py index 050a806..6f5e01f 100644 --- a/main.py +++ b/main.py @@ -28,8 +28,8 @@ def safe_strptime(date_str): # 尝试按照指定格式解析日期 return datetime.strptime(date_str, "%Y年%m月%d日 %H:%M") except ValueError: - # 如果日期格式不对,返回 None - return None + # 如果日期格式不对,返回 datetime.max + return datetime.max # 还原QQ空间网页版说说 @@ -140,6 +140,7 @@ def save_data(): open_file(current_directory + user_save_path[1:]) os.system('pause') + def open_file(file_path): # 检查操作系统 if platform.system() == 'Windows': diff --git a/resource/.DS_Store b/resource/.DS_Store deleted file mode 100644 index ef32eeda7177296c54ba8b0a4c5a7d6f84c3fa40..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%}T>S5T4O0fr{3f$9;vq!L~&3o)?f>sfV;F)q36+>(!G7U&gb3vonHe173=h zG6TEc?EGc(L3T4l#N+jJNHid#0z;5R=@2n@x=t+k49K}gO)vFqSUoiJWk;byG|Ar2 zX+@9pOl#WS|K-K!wtwD~<)m&Vuos)J_v_8w+h{jt`e)4Y=@(B|A1Kk@$7{7()XicB zJGgam2AlzBz!`7`_QrtSD@A{A6}^x%;0zoK19CnD48dra6!X!6DYpQ?9?V&wOD`cg z!7v&oMR*{rsX$F-YcW{UVGkA;4U?j#6I=7a_T-=Dh4a%XQj{uU&*?z_5y*u2