V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 3384 views
    This topic created in 3935 days ago, the information mentioned may be changed or developed.
    这种交互就像 vim 一样,可以通过上下左右方向键控制光标的坐标,可以控制特定的坐标所显示的字符。
    此外,还要能捕获键盘输入。比如说我输入 ESC 就退出什么的。

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