如何在python中找到有关函数的信息?

lor*_*d12 5 python

我知道在R中你可以输入?"function_name".你是如何在python中做到这一点的?具体来说,我试图set_positionpyplot库中找到有关的信息.

mgi*_*son 8

help(function)
Run Code Online (Sandbox Code Playgroud)

应该做的伎俩.

演示:

def func():
    """
    I am a function who doesn't do anything,
    I just sit in your namespace and crowd it up.
    If you call me expecting anything
    I'll just return to you the singleton None
    """
    pass

help(func)
Run Code Online (Sandbox Code Playgroud)