如何编辑参数格式

How to edit argument format

我有一个 python 脚本...它的名称与 bash

不同
./script.py 'arg1' 'arg2 stillarg2'

在 python 脚本中有两个参数。

现在我想用 bash 脚本调用它

#!/bin/bash
./script.py   

我想用这种语法调用bash脚本

./script.sh arg1 arg2 stillarg2

在 Bash 脚本中有 3 个参数且没有引号。

那么有没有一种方法可以通过使用 bash 脚本来调用带参数的 python 脚本。没有引号和 3 个参数?

我试过:

#!/bin/bash
./script.py "''" "' '"

结果是:

operation not support

您只想将 </code> 和 <code> 组合在同一个参数中,不是吗?

#!/bin/bash
./script.py "" " "