Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 VIM 中编写 Python 时,有什么方法可以查看函数的文档字符串?
例如:
def MyFunction(spam): """A function that foobars the spam returns eggs""" return foobar(spam).eggs()
我希望能够以MyFunction(spam0)工具提示或状态栏或 VIM 允许的任何其他方式键入和查看文档字符串。
MyFunction(spam0)
pythoncomplete脚本 可能是您正在寻找的。