dir 查看对象包含哪些属性,str类型为例 >>> dir(str) 查看某个属性的帮助文档,str的split属性为例 print(str.split.__doc__) 或者 help(str.split) 查看某个对象的详细文档用help,如help(str) 退出按q