上代码
1 import os 2 if __name__=='__main__': 3 str="CHCP 65001"+"&&" 4 str+="E:"+"&&" 5 str += "cd E:\DATAX\datax\bin" + "&&" 6 str += "python datax.py " + "E:\DATAX\Workplace\TEXT\csv2csv.json" 7 print(str) 8 cmd=os.system(str) 9 print(cmd)