2024-10-04 01:30:56 发布
网友
我正在将一个程序从批处理转换为Python。我想我可以这样翻译这批
%VBM% sharedfolder add %VMNAME% --name "LogDir" --hostpath %LogDir%
分为:
os.execlp(VBM, 'sharedfolder', 'add', VMNAME, '--name', "LogDir",'--hostpath', LogDir)
我的问题:
我决定继续使用子流程调用()而且很有效。你知道吗
我决定继续使用子流程调用()而且很有效。你知道吗
相关问题 更多 >
编程相关推荐