解决方法 安装pyreadline pip install pyreadline 参考 https://stackoverflow.com/questions/46944162/python-console-tab-completion-not-working-in-windows