安裝pyreadline。python
C:\>pip install pyreadline
將如下代碼保存爲tab.py文件,存放到C:\Python27\Lib目錄下便可。oracle
import readline import rlcompleter import readline readline.parse_and_bind('tab: complete')
轉自及參考:ide
http://oracle-abc.wikidot.com/zh-blog:95spa