方法一:
进去cmd的dos窗口,然后输入python 文件名,如下:
python文件在windows执行俩种的方法
方法二:
在python的shell窗口点击file -> open -> 然后选择你的python文件,这个时候会弹出一个窗口,
python文件在windows执行俩种的方法
弹出的窗口
python文件在windows执行俩种的方法
然后点击run -》 run module,即可在之前的shell窗口输出运行后的结果,如下:
python文件在windows执行俩种的方法

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2021-11-20
  • 2021-11-19
  • 2022-12-23
  • 2022-02-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-29
  • 2021-12-25
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案