Python代码作为参数

shi*_*ilk 2 python arguments

如何将一段代码作为参数传递给python?

我试过这样,但它没有用.

$ python3'print("hello world")'

无法打开文件'打印(你好':[Errno 2]没有这样的文件或目录

blu*_*ume 7

python -c 'print("hello world")'