首页 > 解决方案 > 破折号,输入自动提示

问题描述

在破折号输入中键入单词时,我想获得自动建议,我的意思的一个例子是我过去制作的这个 CLI 应用程序。

在此处输入图像描述

文档链接:https ://python-prompt-toolkit.readthedocs.io/en/master/pages/asking_for_input.html?highlight=suggestions#autocompletion 3

先感谢您!

标签: pythonplotlyplotly-dashplotly-python

解决方案


您可以使用此模块中的 AutoComplete 组件。在这个文件中有一个例子。


推荐阅读