我想使用IRB运行脚本然后给我一个交互式提示.我python -i xy.py在Python中执行此操作,但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
Run Code Online (Sandbox Code Playgroud)
irb -r xy.rb
Run Code Online (Sandbox Code Playgroud)
在给出正常的IRB提示之前,它只需要提到的文件.