python打印对象的所有可操作内容

print('\n'.join(['%s:%s' % item for item in 对象.__dict__.items()]))

猜你喜欢

转载自www.cnblogs.com/yc-c/p/10494062.html