编程技术 json.dumps 遇到 Decimal 直接抛 TypeError·default 函数怎么写 2026年11月10日 9823189 def enc(o): if isinstance(o, D…