mac怎么执行python文件?
来源:花图问答
Mac执行python文件的方法:
以如下test.py文件为例来看一下在Mac中如何执行python文件。
执行方法:
方法一:
1、打开mac终端,进入test.py文件保存目录
2、使用python test.py命令执行python文件
方法二:
1、进入ipython shell 模式:
2、将文件名传给%run就可以运行了:
更多Python知识请关注栏目。