MyBot.py 文件源码

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

项目:halite_bot 作者: ewirkerman 项目源码 文件源码
def main_loop():
    global last_map
    profiling = True
    profiling = False
    #import objgraph

    if not profiling:
        while True:
            main()
    else:
        if os.path.exists("stats"):
            if os.path.exists("stats\*"):
                os.remove("stats\*")
        while True:
            currpath = 'stats\mybot-%s.stats' % (turnCounter+1)
            cProfile.run('main()', currpath)


# with open("bot." + "debug", "a") as f:
    # logger.debug("Baselining at %s" % getframeinfo(currentframe()).lineno)
    # objgraph.show_growth(limit=20,file=f)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号