print('\n'.join(['%s:%s' % item for item in 对象.__dict__.items()])) 转载于:https://www.cnblogs.com/yc-c/p/10494062.html