1. dir()查看类的方法和属性 dir([object]) 2.help()查看函数或模块用途的详细说明 help([object]) 3.查看具体类中某方法的详细说明 help(object.method_name) 例如:查看slice类中的indices方法 help(slice.indices) 相关文章: