Just downloaded the latest version of python, and test it. The latest version is https://www.python.org/ftp/python/3.5.2/ Python -3.5.2.tgz This is a script for tab completion
zero
one
two
three
four
five
six
seven
eight
nine
ten
eleven
twelve
thirteen
fourteen
fifteen
sixteen
seventeen
[ root @ Test5 ~ ] # cat /usr/local/python/lib/python3.5/site-packages/tab.py
#!/ usr/local/python/bin/python3
import sys
import readline
import rlcompleter
import atexit
import os
# tab completion
readline . parse_and_bind ( 'tab: complete' )
# history file
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
Reprint: https://my.oschina.net/lenglingx/blog/500821
SourceByrd's Weblog- https://note.t4x.org/basic/python-use-tab/