推荐学习书目
› 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
fyyz
V2EX  ›  Python

linux 下想写在终端有交互的 python 程序,但是不知道交互用什么

  •  
  •   fyyz · Jul 20, 2015 · 3675 views
    This topic created in 4138 days ago, the information mentioned may be changed or developed.
    这种交互就像 vim 一样,可以通过上下左右方向键控制光标的坐标,可以控制特定的坐标所显示的字符。
    此外,还要能捕获键盘输入。比如说我输入 ESC 就退出什么的。

    不知道 Python 有什么库可以做到?
    7 replies  •  2015-07-22 09:28:47 +08:00
    cxl008
    cxl008
    Jul 20, 2015
    1
    curses?
    cheerzeng
    cheerzeng
    Jul 20, 2015
    2
    你指的是做个console 吗?可以用cmd 这个库
    fyyz
    fyyz
    OP
    Jul 20, 2015 via Android
    3
    @cheerzeng 我想做类似贪食蛇和俄罗斯方块这类东西,终端里跑的
    fxxkgw
    fxxkgw
    Jul 21, 2015
    4
    普通的python代码 用py2exe 有参数可选是打包成GUI还是console终端这种模式
    mulog
    mulog
    Jul 21, 2015
    5
    用过某个东西 UI是用 npyscreen 这个库做的 可以看看
    http://npyscreen.readthedocs.org/introduction.html
    xlvecle
    xlvecle
    Jul 21, 2015
    6
    curses
    tput
    cheerzeng
    cheerzeng
    Jul 22, 2015
    7
    @fyyz ok,那我理解错了,有一个叫kivy的http://kivy.org/#home
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4639 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 01:24 · PVG 09:24 · LAX 17:24 · JFK 20:24
    ♥ Do have faith in what you're doing.