[英]Run CMD code line in python, see results in terminal Anaconda
I have this simple code I use to convert files with handbrake我有这个简单的代码,用于使用手刹转换文件
"C:\Program Files\HandBrake\HandBrakeCLI.exe" -i c:\folder -o c:\folder2 --preset-import-file "D:\Handbreak\Script\dudeness.json"
I want to run this line in python and see the output it generates in the terminal我想在 python 中运行这一行并查看它在终端中生成的输出
My Intention is to iterate "C:\\folder" and "c:\\folder2"我的意图是迭代 "C:\\folder" 和 "c:\\folder2"
First,第一的,
import os
os.system("your command")
You can then use a cmd script to run python script然后您可以使用 cmd 脚本来运行 python 脚本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.