#!/usr/bin/env python
# -*- coding:utf-8 -*-
# python startup file
# tab补全模块
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
#最后需要设置一下环境变量路径
Linux的tab补全模块(目前只适用于python2.0?)
最新推荐文章于 2022-09-09 14:19:43 发布
