摘要: import decimal class DecimalEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, decimal.Decimal): return float(o) super(DecimalEncoder, self).default(o) # and the... 阅读全文
posted @ 2018-12-20 20:50 libaibuaidufu 阅读(999) 评论(0) 推荐(0) 编辑