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