我得到了一个错误:Traceback (most recent call last):File "", line 1, in File "C:\Users\XYZ\AppData\Local\Programs\Python\Python36\lib\site-packages\matlab\engine\matlabengine.py", line 71, in __call___stderr, feval=True).result()
在py文件前加上一段: #!/usr/bin/env python 打开终端输入chmod 777 yourfile.py打开macOS上的脚本编辑器 tell application "Terminal"set newTab to do script "cd /Users/..........."do script "./yourfile.py" in front window
end tell