在Windows系统上,我使用的是shell.exec,但我知道这在mac和Linux上是不一样的。我相信他们使用的是system,但我不知道我是怎么做到的,因为我只需要使用shell.exec。{ shell.exec(file.name)#insert linuxand mac equiv here (I think they're the same)
我是一个python新手,通过linux系统使用python shell。我通过在命令行输入" python“进入python shell。Type "help", "copyright", "credits" or "license" for more information.>>> word'cheese'
>>>