如何使用python將cmd中命令的output傳遞給txt文件? [英]How to pass output of a command in cmd to a txt file using python?