How to pass a piece of code as arguments to python?
I tried like this, but it didn't work.
$ python3 'print("hello world")'
can't open file 'p开发者_如何学Pythonrint(hello': [Errno 2] No such file or directory
python -c 'print("hello world")'
Try
python3 -c 'print("hello world")'
精彩评论