Object of type ndarray is not JSON serializable
摘要:
class NpEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, np.integer): return int(obj) elif isinstance(obj, np.floating): return f 阅读全文
posted @ 2021-06-07 09:54 闹不机米 阅读(619) 评论(0) 推荐(0) 编辑