pic_ext = os.path.splitext(pic_path)[-1]
with open(pic_path, 'rb') as f1:
res = f1.read()
with open (comp_path, 'rb') as f2:
res += f2.read()
target_pic = 'target' + pic_ext
with open(target_pic, 'wb') as f3:
pic_path = 'C:/Users/gmbjzg/Desktop/测试文件夹/美女.jpg'
comp_path = 'C:/Users/gmbjzg/Desktop/测试文件夹/小视频.zip'