📅  最后修改于: 2022-03-11 14:47:09.991000             🧑  作者: Mango
class MicroMock(object):
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
def print_foo(x):
print x.foo
print_foo(MicroMock(foo=3))