查看对象的属性,方法的快捷办法 dir 跟 type 在terminal输入: hi = 'name' dir(hi) # 会返回 hi 对象所有的相关方法,属性 http://isilic.iteye.com/blog/1733560