在Colab中有没有用python变量运行脚本的更新方法?

在我们以这种方式运行脚本之前

script = 'script.py'

!python '$script'

但是,最近发生了此错误

python3: can't open file '$script': [Errno 2] No such file or directory

在colab中有没有更新的方法来运行带有python变量的脚本?

转载请注明出处:http://www.txqp3.com/article/20230526/1793687.html