是否有任何方法可以从Python配置CMD模块,即使在交互式shell关闭后仍保留持久历史记录?
当我按下向上和向下键时,我想访问先前在我运行python脚本以及我刚刚在此会话期间输入的脚本时先前输入shell的命令.
如果其任何帮助cmd使用set_completer从readline模块导入
set_completer
python python-module readline python-cmd
python ×1
python-cmd ×1
python-module ×1
readline ×1