python日志记录模块实例及改进 python打印对象的所有属性值:defprn_obj(obj):print'\n'.join(['%s:%s'%itemforiteminobj.__dict__.items()])Python python日志分析模块