dir 查看對象包含哪些屬性,str類型為例 >>> dir(str) 查看某個屬性的幫助文檔,str的split屬性為例 print(str.split.__doc__) 或者 help(str.split) 查看某個對象的詳細文檔用help,如help(str) 退出按q