How to search help using python console

前端 未结 10 1617
长发绾君心
长发绾君心 2021-02-08 20:25

Is there any way to search for a particular package/function using keywords in the Python console?

For example, I may want to search \"pdf\" for pdf related tasks.

10条回答
  •  佛祖请我去吃肉
    2021-02-08 21:01

    1. help(name of the function)
    2. if you are using jupyter or ipython notebook ,then adding "?" would bring dogstring for the code. this is helpful if you want to see help of specific function.example pandas.read_csv?.
    3. by pressing "Tab" you can see what you need to enter as parameters, although it would not give what a function does, but provide way to enter the input parameters.

提交回复
热议问题