`cat`如何在ipython交互式shell中工作?

Tre*_*ith 5 python shell interactive ipython

我注意到cat在ipython上使用文件.它似乎没有被列为一个神奇的命令...所以我很困惑它是如何/为什么它的工作原理.什么让catipython交互式shell工作?

Dou*_*gal 5

IPython的自动定义一些shell别名,包括cat,IPython.core.alias.default_aliases().


Imr*_*ran 5

cat是预定义的系统命令别名之一.键入%alias以查看当前ipython会话中的别名列表.