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

标签 python shell ipython interactive

我注意到在文件上使用 cat 在 ipython 中有效。它似乎没有被列为魔法命令......所以我很困惑它是如何/为什么工作的。是什么让 cat 在 ipython 交互式 shell 中工作?

最佳答案

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

关于python - `cat` 在 ipython 交互式 shell 中如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10761413/

相关文章:

python - 如何在 python 中使用命令打开 shell?

linux - 为什么 shell 逻辑不在 if 条件测试中表现不符合预期

python - importlib.reload() 没有将文件重新加载到 ipython 笔记本中

python - 从 Pandas 数据框中删除标题列

python - `def m_test(x: my_var) -> list:`是什么类型的声明

linux - 如果前两列相等,则根据第 3 列的降序选择前 3 列

python - 为什么这些函数不一起绘制在同一个图形上?

ipython - 使用单独的图像将ipython笔记本转换为html

python - 另一种平方数的方法

python - 在Python中计算两个大列表中每个元素的距离