设置位置:
Tools -> Python Integrated Tools -> Docstrings -> Docstring format
五种风格:
Plain
reStructuredText
Numpy
Epytext
风格示例
# Plain def foo1(a, b): """ """ return a+b # reStructuredText def foo2(a, b): """ :param a: :param b: :return: """ return a+b # Numpy def foo3(a, b): """ Parameters ---------- a b Returns ------- """ return a+b # Google def foo4(a, b): """ Args: a: b: Returns: """ return a + b # Epytext def foo(a, b): """ @param a: @param b: @return: """ return a+b