def prn_obj(obj):
print '\n'.join(['%s:%s' % item for item in obj.__dict__.items()])
原链接:http://www.cnblogs.com/juandx/p/5620126.html
def prn_obj(obj):
print '\n'.join(['%s:%s' % item for item in obj.__dict__.items()])
原链接:http://www.cnblogs.com/juandx/p/5620126.html