gpt4 book ai didi

python - 我可以执行 ipython 脚本吗?

转载 作者:太空狗 更新时间:2023-10-29 21:29:40 25 4
gpt4 key购买 nike

有没有办法执行 ipython 脚本?我不是指 python 脚本,而是使用简化的语法,因为它将被输入到 ipython shell 中

最佳答案

当然,只需像使用 Python 运行普通 Python 脚本一样使用 IPython 运行它们:

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

关于python - 我可以执行 ipython 脚本吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11782744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com