🌈 搜索
📅  最后修改于: 2022-03-11 14:45:04.389000             🧑  作者: Mango
def as_currency(amount): if amount >= 0: return '${:,.2f}'.format(amount) else: return '-${:,.2f}'.format(-amount)