怎么才能知道python中方法的用法

看教程不理解shift这个方法的作用和用法

http://img.mukewang.com/586630a5000124a305230199.jpg

就自己在ipython上试着help,没有成功

http://img.mukewang.com/586630d4000174fb06780365.jpg

哪位前辈知道如何直接在ipython中查找这种方法的用法?

无无法师
浏览 1938回答 0
0回答

狂飙的蜗牛_1

shift不是全局方法,所以直接help(shift)会报错,你需要将方法完整的调用传进去比如想知道append的用法就要这样b=[]help(b.append)  #正确help(append)  #会报错

慕瓜9220888

ZMRGOEAAQOFTCHQZSVLYFAISBKDDUTOPZGWZQUIQLUKTNKRQVDMSVOGGSTSUKXQVMBZXUJSPAESCLUKTGBIAFONXQYAKAPXHJPPCAYNPOOUITAFUSLEAAPGUTCCSROPWLZYNNQGSGFWBUNDNESQVNPOEKOSUIHXGPZYPOWRKJJTAEWUMCKGKWETZLBLSPDKSDJLEDXMNLQFEENPGDVNPFLOBVGEVJZCLFNKCYUJZIAQRPEICLOOBIWSWLAUXRRQONJSBOWDLJVENKNIPEWNHWMTGHMWMMFTNWDSXIEHAGNIQODROKNROJRNWVYIOMNSRGGJWWDSXSQGISOSUZRQATQZGKCYAWGJWHCRFPYJWCCLQXDDJZOSQFPIHHRIDNZOOOSIANVXMNDCWKBPUSSIBKOILHFIENHMNSRVPBJWDAOQLLXERGNCKZIUUWUYQVDGCVOKLGOAWMILIPOJBMVVOAAIULSUENSKPESIBHUZDBJYHEOUJUSXFSUBNLPTSATTXXPTBAYYXGKTAENVOOKQYMUTXHYBIKIDUJPIOETAVDZYGCSNRFHCVURXBIXPNTMWIVAMWUKTTGOQVHGGANHVWSEGALLMVZHCKGTCLPJDBAJZCSXINFDDCCSZKBGVLAAFAEFXVEUEHDNPUISYRXPXVNJSOIVHODLAZEEAQSECKKZMFCVAPLVIFHMEZLDGZFCSWLNOXGQVKRWECCPELPTRQRPPLFAXMKSILROWACRWPIYLTZYZYXXGXJXFEZVBXXYJBGOZZYBDKZHPPYYFQXCKPVQJGYVUMBUZMJELGRWMOHXCGYGFE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