2024-05-29 02:17:18 发布
网友
在shell中,我可以执行如下AppleScript命令行代码:
osascript -e "tell application \"Finder\" to activate"
在Python中是否也可以这样做,例如:
python --execute "print('hello world!')"
像这样的东西应该适合你
python -c 'print("Hi")'
可能是How to execute Python inline from a bash shell的副本
像这样的东西应该适合你
可能是How to execute Python inline from a bash shell的副本
相关问题 更多 >
编程相关推荐