python 自动补全

一、查看python 环境变量
>>> import sys
>>> sys.path

编写 tab.py

import sys
import atexit
import readline
import rlcompleter
import os
readline.parse_and_bind('tab: complete')
histfile = os.path.join(os.environ['HOME'], '.pythonhistory')


将tab.by  放置python环境的任意目录下。  

IT运维开发路上的点点滴滴。。。
原文地址:https://www.cnblogs.com/weijie0717/p/4777093.html