How to run Python script on terminal?

前端 未结 7 675
醉话见心
醉话见心 2020-11-28 08:19

I want to run a Python script in Terminal, but I don\'t know how? I already have a saved file called gameover.py in the directory \"/User/luca/Documents/python\".

7条回答
  •  一向
    一向 (楼主)
    2020-11-28 08:54

    You need python installed on your system. Then you can run this in the terminal in the correct directory:

    python gameover.py
    

提交回复
热议问题