最佳答案
                                        
                                                                        
                                我在命令行中的操作:
cat file1 file2 file3 > myfile
我想对巨蟒做什么:
import subprocess, shlex
my_cmd = 'cat file1 file2 file3 > myfile'
args = shlex.split(my_cmd)
subprocess.call(args) # spits the output in the window i call my python program
 
                                
                             
                                
                             
                                
                             
                                
                             
                                
                            