是否将操作系统响应另存为变量?我想在python上运行diros命令,并将输出保存为变量,如下所示 output = os.system('dir') print(output) 我该怎么做呢?我尝试过使用子进程,但一直收到一个 ...2024-06-03 已阅读: n次