assertion.py 文件源码

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

项目:QTAF 作者: Tencent 项目源码 文件源码
def _getFuncResult(func,args):
    '''?????????????????????????
    '''
    if not isinstance(func,types.MethodType) and not isinstance(func,types.LambdaType):
        raise TypeError("func type %s is not a MethodType or LambdaType" % type(func))
    if dict == type(args):
        actret = func(**args)
    elif tuple == type(args):
        actret = func(*args)
    else:
        actret = func(args)
    return actret
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号