tab模块
#!/usr/bin/envpython#pythonstartupfileimportsysimportreadlineimportrlcompleterimportatexitimportos#tabcompletionreadline.parse_and_bind('tab:complete')#historyfilehistfile=os.path.join(os.environ['HOME'],'.pythonhistory')try:readline.read_history_file(histfile)exceptIOError:passatexit.register(readline.write_history_file,histfile)delos,histfile,readline,rlcompleter#forLinux
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。