python交互模式下tab键自动补全

import rlcompleter,readline
readline.parse_and_bind('tab:complete')
原文地址:https://www.cnblogs.com/Dev0ps/p/7778613.html