如何使用子流程在python中自动执行shotchut命令?

2024-09-28 20:57:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我的python还不是很好,所以我希望你能理解,我想在一个名为shotcut的程序中打开filters命令,然后执行rotate、scale、size和position命令,我的问题是如何在python中做到这一点

到目前为止,我翻遍了网络,只找到了如何执行以下程序:

import subprocess

subprocess.Popen("C:\Program Files\Shotcut\Shotcut.exe")

proxy = subprocess.Popen("C:\Program Files\Shotcut\Shotcut.exe")

proxy.poll() == None

proxy.wait() 

how to execute filter?

then execute the two commands pointed out here


Tags: 命令程序sizepositionfilesprogramexefilters