Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法执行 ipython 脚本?我不是指 python 脚本,而是使用简化的语法,因为它将被输入到 ipython shell
当然,只需使用 IPython 运行它们,就像使用 Python 运行纯 Python 脚本一样:
$> echo '%time print "hello, world"' > script.ipy $> ipython script.ipy hello, world CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s Wall time: 0.00 s