时间:2021-07-01 10:21:17 帮助过:66人阅读
cat tab
#!/usr/bin/python
import sys
import readline
import rlcompleter
import atexit
import os
readline.parse_and_bind('tab:complete')
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
以上就是你必须了解的python支持tab键补全命令的详细内容,更多请关注Gxl网其它相关文章!