📌  相关文章
📜  如何从 python 脚本运行 mac 终端 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:44.647000             🧑  作者: Mango

代码示例1
from applescript import tell

#set what command you want to run here
yourCommand = 'ls'

tell.app( 'Terminal', 'do script "' + yourCommand + '"')