def make_rar():
source_dir = f'C:/test'
output_filename = 'xxx.rar'
os.system(f'cd {source_dir} && C:/WinRAR/WinRAR.exe a -ibck {output_filename} {source_dir}')
def make_rar():
source_dir = f'C:/test'
output_filename = 'xxx.rar'
os.system(f'cd {source_dir} && C:/WinRAR/WinRAR.exe a -ibck {output_filename} {source_dir}')
本文标题:win10下os.system模块运行winrar
本文链接:https://www.haomeiwen.com/subject/muhinctx.html
网友评论