当我试图导入一个名为“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)。如何修复此错误?你知道吗
如果
tttnums.py
的全部内容就是这个数据结构,那么将其存储在纯文本或json
文件中并读取它比将其作为.py
文件导入更有意义。你知道吗相关问题 更多 >
编程相关推荐