就像fdisk之类的一样
有旧帖提到这个问题 /t/99667
不过貌似没有很好的答案。
不知到有没有什么方法/库能够做到这一点(最好支持tab补全)
目前能想到的一种方式就是input('>')然后自己读进来,但是感觉很不优雅,也不支持补全
有旧帖提到这个问题 /t/99667
不过貌似没有很好的答案。
不知到有没有什么方法/库能够做到这一点(最好支持tab补全)
目前能想到的一种方式就是input('>')然后自己读进来,但是感觉很不优雅,也不支持补全
|
cbswApr 12, 2015
1
http://pymotw.com/2/cmd/ 里面提到有 tab 补全
|
|
2
curses?
|
|
wenLiangcanApr 12, 2015
3
Library for building powerful interactive command lines in Python:
https://github.com/jonathanslenders/python-prompt-toolkit |
|
4
|
|
wuyu1998Apr 15, 2015
5
|