dir([object])
help([object])
help(object.method_name)
例如:查看slice类中的indices方法
help(slice.indices)
Python - 查看类的方法和属性
原文:https://www.cnblogs.com/JIM-FAN/p/13019255.html