def prn_obj(obj): print ‘\n‘.join([‘%s:%s‘ % item for item in obj.__dict__.items()])
原文地址:https://www.cnblogs.com/Niuxingyu/p/11232652.html
时间: 2024-11-06 13:45:48
def prn_obj(obj): print ‘\n‘.join([‘%s:%s‘ % item for item in obj.__dict__.items()])
原文地址:https://www.cnblogs.com/Niuxingyu/p/11232652.html