Python曾经使用的命令列表用什么查看,python命令,如题。Shell中用hi


如题。
Shell中用history查看,Python中什么命令查?

看一看这个博文,是不是能解决你的问题:
http://blog.csdn.net/imfinger/article/details/9398261

如GeauxEric所说, 如果是在 IPython的话就已经有魔法方法帮助了. 要是在cPython, 可以用readline:
readline-doc

如果你用的是ipython的话, 使用magic function: %history

In [1]: import djangoIn [2]: %historyimport django%historyIn [3]:

谢谢,但我现在在Windows下运行Python, 怎么查Python运行过的命令,只查本次启动后运行的也可以。

编橙之家文章,

评论关闭