IPython 0.13.1 文档说:
$ ipython -h
...
Usage
ipython [subcommand] [options] [files]
If invoked with no options, it executes all the files listed in sequence
and exits, use -i to enter interactive mode after running the files.
...
我有两个文件foo.py
和bar.py
.
foo.py
:
print "Hi, I'm foo."
bar.py
:
print "Hi, I'm bar."
我希望以下内容以相应的顺序打印两个文件输出。相反,我只从命令行上给出的第一个文件中获取输出。
$ ipython foo.py bar.py
Hi, I'm foo.
$ ipython bar.py foo.py
Hi, I'm bar.
这是实现错误、文档错误还是用户误解?如果是后者,我应该怎么做?