写模块的时候如何给python添加功能指南?

How do you add function guides to python when writing a module?

最近在写一个python模块,里面有很多功能,想知道是否可以实现,如果可以的话,我该如何实现这些功能指南,如下图所示。提前致谢!

这些是function docstring,要在写函数时定义它们,只需在函数的开头添加一个多行字符串

def function():
    '''This function does nothing'''
    pass

要访问文档字符串,请使用 function.__doc__help(function)