标签: pvts

我应该如何记录 Python 方法参数,以便它们出现在智能感知和 DOxygen 中?

我一直在使用 PyTools for Visual Studio 2013,并且想知道是否可以以智能感知和 DOxygen 都能理解的方式记录参数。

例如,我一直在尝试这样(摘自PEP257的片段):

def complex(real=0.0, imag=0.0):
    """Form a complex number.

    Keyword arguments:
    real -- the real part (default 0.0)
    imag -- the imaginary part (default 0.0)
    """

    print("Test func running")

if __name__ == '__main__':
    complex(
Run Code Online (Sandbox Code Playgroud)

...但智能感知似乎没有接受参数描述:

在此输入图像描述

python intellisense doxygen pvts

6
推荐指数
1
解决办法
2209
查看次数

标签 统计

doxygen ×1

intellisense ×1

pvts ×1

python ×1