Python:导入时达到递归限制

2024-09-27 20:18:33 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图导入一个名为“tttnums.py公司“我总是遇到这样的错误:

Traceback (most recent call last):
File "C:/Users/Marcsegal/Dropbox/Programs/ttt finished.py", line 1, in <module>
    import tttnums
RuntimeError: maximum recursion depth exceeded during compilation

这是本书的内容tttnums.py公司地址:

tttSets = [
[7, 1, 4, 0, 3, 2, 8, 6, 5, 'L']
[0, 6, 5, 4, 2, 8, 1, 3, 7, 'W']
[2, 8, 0, 5, 6, 7, 4, 3, 1, 'W']
(continued with 40317 more lists)
]

我假设我得到这个错误的原因是因为我在文件中有太多的列表(确切地说是40320)。如何修复此错误?你知道吗


Tags: pymost错误公司callusersfiledropbox

热门问题