python合并ts视频文件
import os
path=input('请输入需要合并的绝对路径:')
list_1=[path+'\{}.ts'.format(str(ij)) for ij in sorted([int(str_1[:str_1.find('.')]) for str_1 in os.listdir(path)])]
for str_2 in list_1:
with open(file=str_2,mode='rb') as f:
content=f.read()
with ope
原创
2020-09-12 17:18:11 ·
916 阅读 ·
0 评论