subprocess模块在Windows下调用失败问题

2021-10-01 02:15

阅读:946

标签:bug of pythonhttp://bugs.python.org/issue1759845解决:print sys.stdout.encoding  #eg : it shows cp936info = u‘汉字‘cmd = ‘echo ‘ + info        subprocess.call(["java", "-jar", "Test.jar", cmd.encode(‘cp936‘)], shell=True)subprocess模块在Windows下调用失败问题标签:原文地址:http://www.cnblogs.com/flowjacky/p/4727580.html


评论


亲,登录后才可以留言!