Python支持tab键补全

[root@localhost]# cat tab.py
#! /usr/bin/env python
import sys
import readline
import rlcompleter
import os

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

你可能感兴趣的:(python,tab补全)