好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

配置python命令tab键自动补全

1.创建tab.py文件并编辑为如下:

# python startup file import sys import readline import rlcompleter import atexit import os

# tab completion readline.parse_and_bind(‘tab: complete’) # history file histfile = os.path.join(os.environ['HOME'], ‘.pythonhistory’) try: readline.read_history_file(histfile) except IOError: pass atexit.register(readline.write_history_file, histfile)

del os, histfile, readline, rlcompleter

查看更多关于配置python命令tab键自动补全的详细内容...

  阅读:38次