我可以使用VIM查看Python中函数的doc字符串吗?

2024-06-17 07:58:11 发布

您现在位置:Python中文网/ 问答频道 /正文

在VIM中编写Python时,有没有方法可以查看函数的doc字符串?在

例如:

def MyFunction(spam):
    """A function that foobars the spam
    returns eggs"""

    return foobar(spam).eggs()

我希望能够键入MyFunction(spam0)并查看doc字符串,可以作为工具提示,也可以在状态栏中,或者通过VIM允许的任何其他方式。在


Tags: the方法函数字符串docreturnthatdef