How to overcome “datetime.datetime not JSON serializable” in python?

json.dumps(datetime.now)

意思是datetime.now不可json序列化,解决办法是转化成str或者加一个参数

cls=xxx

详细见:

http://*.com/questions/11875770/how-to-overcome-datetime-datetime-not-json-serializable-in-python

上一篇:iSCSI存储系统知识


下一篇:LeetCode: Combination Sum I && II && III