Python 在jupyterlab中运行“%ls”将显示Repr:<;别名ls表示';dir/on'>;,什么是';dir/on';?
只是想知道为什么会给出这个输出,对于其他魔术命令,追加Python 在jupyterlab中运行“%ls”将显示Repr:<;别名ls表示';dir/on'>;,什么是';dir/on';?,python,jupyter-notebook,Python,Jupyter Notebook,只是想知道为什么会给出这个输出,对于其他魔术命令,追加?会给出一个docstring,例如?%pwd显示: Return the current working directory path. Examples -------- :: In [9]: pwd Out[9]: '/home/nuser/sprint/ipython' File: c:\program files\python38\lib\site-packages\ipython\core\magics\os
?
会给出一个docstring,例如?%pwd
显示:
Return the current working directory path.
Examples
--------
::
In [9]: pwd
Out[9]: '/home/nuser/sprint/ipython'
File: c:\program files\python38\lib\site-packages\ipython\core\magics\osm.py
为什么在show
Repr:
中运行?%ls
,这意味着什么?不确定什么是Repr
或什么是dir/on
。您在Windows上,而dir/on
是Windows命令提示符命令。查看其文档:您在Windows上,dir/on
是一个Windows命令提示符命令。参见其文档: