parse.py 文件源码

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

项目:atom-tracer 作者: OmarShehata 项目源码 文件源码
def visit_Assign(self, node):
        for target in node.targets:
            if(isinstance(target,ast.Tuple)):#this is to handle variables declared on the same line
                for el in target.elts:
                    self.grabVar(el)
            else:
                self.grabVar(target)
        ast.NodeVisitor.generic_visit(self, node)#Make sure to run the original method so the AST module can do its thing
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号