我一直在使用 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)
...但智能感知似乎没有接受参数描述: