V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
XIVN1987
V2EX  ›  Python

命令行界面中显示下拉框有什么简单易用的库

  •  
  •   XIVN1987 · 2021-05-17 22:20:17 +08:00 · 1804 次点击
    这是一个创建于 1046 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ipython 、bpython 中输入时按<Tab>键可以弹出一个下拉框提供选择项,请问有什么简单、易用、依赖项少的 Python 库可以实现类似效果?
    不需要功能多强大,,关键是简单、易用。。
    6 条回复    2021-05-18 09:43:22 +08:00
    edk24
        1
    edk24  
       2021-05-17 23:15:12 +08:00
    mysql 有没有类似的东西, 呀 带智能提示的 mysql-cli 一定香~~~
    knightdf
        3
    knightdf  
       2021-05-17 23:20:01 +08:00
    @edk24 mycli
    XIVN1987
        4
    XIVN1987  
    OP
       2021-05-17 23:41:03 +08:00
    @ClericPy
    感谢指点,,我去看看
    frostming
        5
    frostming  
       2021-05-18 08:55:13 +08:00
    补充 #2

    #2 给的是跨平台的方案,目前全是基于 prompt-toolkit
    如果不需要支持 windows,可以考虑更轻量的 https://github.com/bchao1/bullet
    edk24
        6
    edk24  
       2021-05-18 09:43:22 +08:00
    @knightdf 牛批,谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2946 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:10 · PVG 22:10 · LAX 07:10 · JFK 10:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.