【发布时间】:2011-01-22 11:39:52
【问题描述】:
我想使用 IRB 来运行脚本,然后给我一个交互式提示。我在 Python 中使用 python -i xy.py 执行此操作,但是 irb xy.rb 在执行后退出。
> python --help
-i When a script is passed as first argument or the -c option is
used, enter interactive mode after executing the script or the
command
【问题讨论】: