摘要: 先来看一段Python代码:def info(object, spacing=10, collapse=1): """Print methods and doc strings. Takes module, class, list, dictionary, or string.""" methodList = [method for method in dir(object) if callable(getattr(object, method))] processFunc = collapse and (lambda s: &quo 阅读全文
posted @ 2011-07-27 14:05 何塞穆里尼奥 阅读(586) 评论(4) 推荐(0) 编辑
点击右上角即可分享
微信分享提示