Run python source file from PowerShell

前端 未结 6 489
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 16:28

I\'m trying to learn python but have some problem running source files from power shell. When I type \'python\' it opens up and I can type python commands directly in the sh

6条回答
  •  甜味超标
    2021-01-19 17:11

    If you started by typing "python" in powershell you will need to get out of that script.

    If you are in python type:

    quit() then type python myfile.py

    This should work if your python is installed correctly.

提交回复
热议问题