From 5d6ab6049679ab9cba36d3268b085c3b5033d5e5 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Wed, 29 May 2024 13:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=87=91=E9=A2=9D=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E4=BD=8D=E6=95=B0=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/util/data_util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/photo_review/util/data_util.py b/photo_review/util/data_util.py index e175c7a..5213fdb 100644 --- a/photo_review/util/data_util.py +++ b/photo_review/util/data_util.py @@ -11,6 +11,7 @@ def handle_decimal(string): return string front, back = string.rsplit('.', 1) front = front.replace(".", "") + front = front[-16:] if back: back = "." + back return front + back @@ -77,3 +78,6 @@ def handle_department(string): if pure_string != string_without_brackets: result.append(pure_string) return result + +if __name__ == '__main__': + print(handle_decimal("~202312167,214.83金额(元)1,920.008,888.38740.00交三医专用章广东省医疗压院收票据(电子)政策性游其他支付:0.00医保类型:跨省异地预缴金额:11564.15备注病历号:2165996治疗费手术费护理费中成药费项目名称政电电子“东省结算方式:个人账户支付:0.00医保编号:补缴金额:0.00住院号:216599612,971.56金额(元)7,483.062,192.0211.96复核人:(小写)68,214.38")) \ No newline at end of file