Unix下实现如题功能用下面的代码:
import rlcompleter, readline
readline.parse_and_bind('tab: complete')
但readline不能在win中用,需要为windows编译好的pyreadline
pip install pyreadline import rlcompleter, pyreadline a=Readline()
a.parse_and_bind('tab: complete')
2023-10-06 09:23:10
Unix下实现如题功能用下面的代码:
import rlcompleter, readline
readline.parse_and_bind('tab: complete')
但readline不能在win中用,需要为windows编译好的pyreadline
pip install pyreadline import rlcompleter, pyreadline a=Readline()
a.parse_and_bind('tab: complete')