mzj*_*zjn 28
要清除Windows上的屏幕,请使用!CLS.
在类Unix系统上,使用!clear.
如果由感叹号添加前缀,则操作系统将执行shell命令.请参阅http://ipython.readthedocs.io/en/stable/interactive/reference.html#system-shell-access.
请注意,如果命令定义为别名,则命令也应该在没有感叹号的情况下工作.请参阅http://ipython.readthedocs.io/en/stable/interactive/shell.html?#aliases.
还有一个Ctrl+L清除屏幕的快捷方式.请参阅http://ipython.readthedocs.io/en/stable/config/shortcuts/index.html#single-filtered-shortcuts.
Jak*_*cil 14
您可以将它绑定到常用的Ctrl-l快捷方式,方法是将其绑定到~/.ipython/ipythonrc:
readline_parse_and_bind "\C-l": clear-screen
Run Code Online (Sandbox Code Playgroud)
也许我只是使用更新的版本,但它对我来说很好用,只是:
cls
Run Code Online (Sandbox Code Playgroud)
在Windows和*nix上:
clear
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
38080 次 |
| 最近记录: |