tptv1.py 文件源码

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

项目:TerpreT 作者: 51alg 项目源码 文件源码
def is_declaration_of_type(node, typ):
    if isinstance(node, ast.Subscript):
        return is_declaration_of_type(node.value, typ)
    if not isinstance(node, ast.Call): return False
    if not isinstance(node.func, ast.Name): return False
    return node.func.id == typ
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号