• 大小: 78KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 语言: Python
  • 标签:

资源简介

Nash 一个用于计算2人策略游戏的平衡的python库

资源截图

代码片段和文件信息

import doctest
import os
import unittest
import warnings


# Note loader and ignore are required arguments for unittest even if unused.
def load_tests(loader tests ignore):
    for root dirs files in os.walk(“.“):
        for f in files:
            if f.endswith(“.rst“) or f.endswith(“.md“):
                tests.addTests(
                    doctest.DocFileSuite(
                        os.path.join(root f) optionflags=doctest.ELLIPSIS
                    )
                )

    return tests


if __name__ == “__main__“:
    warnings.simplefilter(“ignore“)
    unittest.main()

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\
     文件          83  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\.gitignore
     文件        1207  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\.travis.yml
     文件        1157  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\CHANGES.md
     文件         637  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\CITATION.md
     文件        1069  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\LICENSE
     文件        2904  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\README.md
     文件         656  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\appveyor.yml
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\
     文件         606  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\Makefile
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\learning\
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\learning\convergent_example\
     文件         867  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\learning\convergent_example\main.py
     文件       38557  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\learning\convergent_example\main.svg
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\learning\divergent_example\
     文件         843  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\learning\divergent_example\main.py
     文件       34855  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\_static\learning\divergent_example\main.svg
     文件        5177  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\conf.py
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\discussion\
     文件        1889  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\discussion\gambit.rst
     文件         126  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\discussion\index.rst
     文件         613  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\discussion\john-nash.rst
     文件         975  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\discussion\other-python-game-theory-libraries.rst
     目录           0  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\how-to\
     文件         839  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\how-to\calculate-utilities.rst
     文件        1017  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\how-to\create-a-game.rst
     文件         257  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\how-to\index.rst
     文件         343  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\how-to\install-nashpy.rst
     文件        1068  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\how-to\solve-with-lemke-howson.rst
     文件         593  2019-06-25 15:51  drvinceknight-Nashpy-cdb482e\docs\how-to\solve-with-support-enumeration.rst
............此处省略54个文件信息

评论

共有 条评论

相关资源