📜  将价格转换为浮动 python 代码示例

📅  最后修改于: 2022-03-11 14:46:57.896000             🧑  作者: Mango

代码示例1
from re import sub
from decimal import Decimal

money = '$6,150,593.22'
value = Decimal(sub(r'[^\d.]', '', money))