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键自动补全的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did7542