使用popen实现不成功,似乎可以用chdir来实现,但我不想用,还有其他方法吗?
os.system("cd x:\path")
os.system(‘cd hello && ls’)或者 os.system(‘cd hello’;’ls’) 这样子的呢 或者好像可以使用subprocess模块