无法封送响应:日期时间。日期时间(2019,5,29,13,41,46,937000,tzinfo=tzlocal())不可JSON序列化“,

2024-05-21 23:31:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图通过代码中显示的时间,为点播动态视频,但我得到了这个错误:

"errorMessage": "Unable to marshal response: datetime.datetime(2019, 5, 29, 13, 41, 46, 937000, tzinfo=tzlocal()) is not JSON serializable",
^{pr2}$

Tags: to代码datetime视频isresponse错误时间