安裝 autodoc 擴充套件

在文件根目錄的 conf.py 檔案中的 extensions list 中新增 autodoc 模組:

extensions = [
    'sphinx.ext.autodoc',
     ...
]