您是否正在用python写主力shell脚本? 为什么不骂人呢?
此类使用curses,使用户可以从简单的选项列表中进行选择。 返回值是所选选项的简单列表,或者为False(用于取消)。 而且,对于我们所有人中的OCD,它在退出后仍保留终端窗口的内容。 与python 2.7和3.5兼容并经过测试。
键: arrow up / arrow down导航, page up / page down arrow down , a切换所有条目, enter以接受, q取消。
用法示例:
from picker import *
opts = Picker (
title = 'Select files to delete' ,
options = [
".autofsck" , ".autorelabel" , "bin/" , "boot/" ,
评论0
最新资源