win10下os.system模块运行winrar
2019-12-20 本文已影响0人
是东东
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}')