From a729b2c51e6809646bad4f14e1e44134512c2e89 Mon Sep 17 00:00:00 2001 From: jackluson <18219112108@163.com> Date: Wed, 9 Nov 2022 00:41:26 +0800 Subject: [PATCH] chore: udpate print --- src/fund_info/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fund_info/api.py b/src/fund_info/api.py index 5f67b7b..b5450b2 100644 --- a/src/fund_info/api.py +++ b/src/fund_info/api.py @@ -91,7 +91,8 @@ def get_base_info_ai(self): self.total_asset = float(total_asset) return self.total_asset except ValueError: - print(total_asset, "not a number") + print("ai->", self.fund_code, total_asset, "not a number") + else: pprint(res_json) print('code:1', self.fund_code) @@ -127,7 +128,7 @@ def get_base_info_zh(self): self.total_asset = float(total_asset) return self.total_asset except ValueError: - print(total_asset, "not a number") + print("zh->", self.fund_code, total_asset, "not a number") else: pprint(res_json) print('code:1', self.fund_code) @@ -185,7 +186,7 @@ def get_base_info_from_danjuan(self): elif(total_asset.endswith('亿')): total_asset = float(total_asset[0:-1]) else: - print(self.fund_code, ":", total_asset, "not a number") + print("danjuan->", self.fund_code, total_asset, "not a number") return self.total_asset = total_asset return self.total_asset