【发布时间】:2011-10-17 01:23:02
【问题描述】:
IPython 中有清除屏幕的命令吗?
编辑:正如@Saher 下面提到的,我可以使用import os; os.system('CLS') clean the screen,但是有没有办法做到这一点而不必导入所有os?
【问题讨论】:
-
查看类似问题的答案 [此处][1] [1]:stackoverflow.com/questions/1432480/…
-
您也可以在
ipy_user_conf.py文件中添加别名。我经常使用这个,所以我把它别名为c,而不是输入!clear。 -
我不得不从 ~/.ipython/ipythonrc readline_parse_and_bind "\C-l": possible-completions 中注释掉这一行,之后效果很好