📜  jsonpickle 排除 py 对象 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:04.133000             🧑  作者: Mango

代码示例1
import datetime
import jsonpickle

class MyClass:
    def __init__(self, eee):
        now = datetime.datetime.utcnow()
        self.ddd = now
        self.ddd2 = now
        self.ddd3 = now

my_object = MyClass('hi')
jsonpickle.encode(my_object, make_refs=False)