运维网's Archiver
论坛
›
Python
› Python支持tab键补全
23421re
发表于 2015-12-3 08:26:58
Python支持tab键补全
# 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')
页:
[1]
查看完整版本:
Python支持tab键补全