【发布时间】:2020-11-18 12:42:43
【问题描述】:
在 shell 中,我可以像这样执行 AppleScript 命令行代码:
osascript -e "tell application \"Finder\" to activate"
在 Python 中是否可能发生同样的事情,例如:
python --execute "print('hello world!')"
【问题讨论】:
-
man python将为您指明正确的方向。
标签: python shell command-line