且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我可以执行ipython脚本吗?

更新时间:2023-10-28 08:38:22

当然,只需运行他们使用IPython和Python一起使用纯Python脚本:

sure, just run them with IPython as you with Python for a plain Python script:

$> 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