# 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键自动补全
精选 转载julyf 博主文章分类:Python及自动化工具
文章标签 tab自动补全、tab 文章分类 Python 后端开发
-
ubuntu下tab键自动补全
ubuntu下命令行自动补全,使用ubuntu的您肯定不会为经常大错命令二苦恼,希望能给您帮上小忙
键盘 source ubuntu 配置文件 -
Python支持tab键补全
Python支持tab键补全
Python tab补全