Import this file into Python's IDE and press TAB to prompt
The ReadLine library is required, and in the new version, the name may be Gnureadline library,
Requires pip install Gnureadline or pip install ReadLine
You can also download the source code for/opt/python35/bin/python3 setup.py install in pipy.python.org
But may hint: rely on ncurses ncurses-devel, ReadLine readline-devel
Can yum install ncurses ncurses-devel readline readline-devel
Cat tab.py #!/opt/python35/bin/python3# python startup fileimport sysimport Readlineimport Rlcompleterimport Atexitimport os# tab completionreadline.parse_and_bind (' Tab:complete ') # History filehistfile = Os.path.join ( os.environ[' HOME '], '. Pythonhistory ') Try: readline.read_history_file (histfile) except IOError: Passatexit.register (Readline.write_history_file, histfile) del os, Histfile, ReadLine, Rlcompleter
Now, you can prompt and complete the Import tab by pressing TAB.
You can actually put the file in the Python program's library path.
Posted, online everywhere is, indeed do not know is copied there.
Using the TAB key in Python (Python3 valid)