生成函数注释
Mac:工具->Python集成工具
Mac:preference->Tools->Python Integrated Tools->Docstring format
Windows:File->setting->Tools->Python Integrated Tools->Docstring format
Google样式:
# Google
def func(a, b, c):
"""
Args:
a:
b:
c:
Returns:
"""
Numpy样式:
# Numpy
def func(a, b, c):
"""
Parameters
----------
a
b
c
Returns
-------
"""
reStructuredText样式:
# reStructuredText
def func(a, b, c):
"""
:param a:
:param b:
:param c:
:return:
"""
Epytext样式:
# Epytext
def func(a, b, c):
"""
@param a:
@param b:
@param c:
@return:
"""