main.py 文件源码

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

项目:ccdetection 作者: tommiu 项目源码 文件源码
def printResults(flow):
    try:
        stats_path = getArg(flow, 's', 'statsfile')
    except:
        stats_path = DEFAULT_STATS_PATH

    if os.path.isfile(stats_path):
        clones = SharedData(stats_path, multiprocessing.Lock()).getClones()
        print "Found %d code clones saved in file '%s':" % (
                                                        len(clones), stats_path
                                                        )
        for i, clone in enumerate(clones):
            print str(i) + ".", clone

    else:
        print "Given path is not a valid file: '%s'" % (stats_path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号