From 99b1a4a9aa54975bc85617edf451f113fc3aa414 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Tue, 2 Apr 2024 16:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=95=E5=8F=B7=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quark_auto_save.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/quark_auto_save.py b/quark_auto_save.py index 9182ba5..931e872 100644 --- a/quark_auto_save.py +++ b/quark_auto_save.py @@ -191,13 +191,13 @@ def get_fids(file_paths): response = requests.request( "POST", url, json=payload, headers=headers, params=querystring ).json() - if(response["code"] == 0): + if response["code"] == 0: fids += response["data"] file_paths = file_paths[50:] else: - print(f"获取目录ID:失败, {response["message"]}") + print(f"获取目录ID:失败, {response['message']}") break - if(len(file_paths) == 0): + if len(file_paths) == 0: break return fids @@ -621,7 +621,7 @@ def main(): global config_data, first_account start_time = datetime.now() print(f"===============程序开始===============") - print(f"⏰ 执行时间: {start_time.strftime("%Y-%m-%d %H:%M:%S")}") + print(f"⏰ 执行时间: {start_time.strftime('%Y-%m-%d %H:%M:%S')}") print(f"") # 启动参数 arguments = sys.argv @@ -675,5 +675,6 @@ def main(): print(f"😃 运行时长: {round(duration.total_seconds(), 2)}s") print(f"") + if __name__ == "__main__": main()