标签:
rlcomplete定义了针对readline模块的命令自动补全函数。
>>>import rlcompleter >>>import readline >>> readline.parse_and_bind("tab: complete") >>> readline.<TAB PRESSED> readline.__doc__ readline.get_line_buffer( readline.read_init_file( readline.__file__ readline.insert_text( readline.set_completer( readline.__name__ readline.parse_and_bind( >>> readline.
try: import readline exceptImportError: print"Module readline not available." else: import rlcompleter readline.parse_and_bind("tab: complete")
标签:
原文地址:http://www.cnblogs.com/fireflow/p/4862817.html