安装 python-ipython 包
方法II
编写一个脚本tab.py
使用时候,import tab 即可
点击(此处)折叠或打开
-
# python startup file
-
import sys
-
import readline
-
import rlcompleter
-
import atexit
-
import os
-
# tab completion
-
readline.parse_and_bind('tab: complete')
-
# history file
- histfile = os.path.join(os.environ['HOME'], '.pythonhistory')