Cannot find the file specified when using subprocess.call('dir', shell=True) in Python

后端 未结 4 746
北海茫月
北海茫月 2020-12-03 13:59

In a 64-bit system with 32 bit python 2.7 installed I am trying to do the following:

import subprocess
p = subprocess.call(\'dir\', shell=True)
print p
         


        
4条回答
提交回复
热议问题