decorators.py 文件源码

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

项目:PYEdit 作者: Congren 项目源码 文件源码
def apply_to_audio(f, clip, *a, **k):
    """ This decorator will apply the function f to the audio of
        the clip created with f """

    newclip = f(clip, *a, **k)
    if hasattr(newclip, 'audio') and (newclip.audio is not None):
        newclip.audio = f(newclip.audio, *a, **k)
    return newclip
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号