看板 Python 關於我們 聯絡資訊
最近寫一隻程式 為了介面上的使用方便 想試試看能不能用按鍵操作 像是用方向鍵操作的方法 而且是在command line 執行當中 範例 ●1. todolist1 2. todolist2 3. todolist3 按一下方向鍵下 會變成 1. todolist1 ●2. todolist2 3. todolist3 這樣 照我平常的寫法 command line 要用一堆操作選項 1.向上 2.向下 輸入2再按enter 有什麼方法可以做到我的想法呢 請指教謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.22.18.78
wxyy:你要的 可能是 Console User Interface... 12/11 09:11
wxyy:參考這個 http://excess.org/urwid/ 12/11 09:11
wil771126:那 有沒有哪種funcion 可以一任意按鍵就結束 存下字串 12/17 04:37