modify_wav.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:AssembleAudio 作者: The-White-Wolf 项目源码 文件源码
def writeScottFile(output_name, header, data):
    """
    Writes header and data information to a file.

    Takes in a list of byte objects 'header',
    a list of byte objects 'data' and an 'output_name'
    which is the new scott file. The scott file contains
    the byte objects in header and data.
    """

    with open(output_name, 'wb') as scott_file:
        for item in header:
            scott_file.write(item)

        for item in data:
            scott_file.write(item)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号