Home > Q&A > body text
我想删除目录下所有的*.ts,os.remove无法批量删除
os.remove
伊谢尔伦2017-04-18 09:20:30
>>> args = [ 'rm *.ts' ] >>> p = subprocess.call(args, shell=True)
参考:
http://stackoverflow.com/ques...
巴扎黑2017-04-18 09:20:30
You may need to write an absolute path