本文介绍了如何在Google Colab中运行脚本外壳?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在colab中运行脚本外壳,我使用了!"而且我也尝试过"%% shell"

I want to run a script shell in colab, i used "!" and also i tried "%%shell"

推荐答案

%%shell!应该都可以.我怀疑您的Shell脚本不在您当前的工作目录中.

Either %%shell or ! should work. I suspect your shell script isn't in your current working directory.

您可以通过运行%ls

这是运行shell脚本的完整示例: https://colab.research.google.com/drive/1i5lHPcsmcgeoFEGg0Dfwjhblsm2iMExP

Here's a complete example of running a shell script:https://colab.research.google.com/drive/1i5lHPcsmcgeoFEGg0Dfwjhblsm2iMExP

这篇关于如何在Google Colab中运行脚本外壳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 23:52
查看更多