import rlcompleter,readlinereadline.parse_and_bind('tab: complete') 转载于:https://www.cnblogs.com/doudou816/p/3612413.html