小编PJC*_*nol的帖子

python cmd模块中的持久历史记录

是否有任何方法可以从Python配置CMD模块,即使在交互式shell关闭后仍保留持久历史记录?

当我按下向上和向下键时,我想访问先前在我运行python脚本以及我刚刚在此会话期间输入的脚本时先前输入shell的命令.

如果其任何帮助cmd使用set_completerreadline模块导入

python python-module readline python-cmd

4
推荐指数
1
解决办法
1854
查看次数

标签 统计

python ×1

python-cmd ×1

python-module ×1

readline ×1