Paw*_*ata 3 python tuples namedtuple traceback
我试图遵循的使用示例namedtuple( )从文档,但我不断收到namedtuple is not defined。
你需要import collections顶,然后你可以做collections.namedtuple
你也可以这样做from collections import namedtuple,它应该像在文档中一样工作
| 归档时间: |
|
| 查看次数: |
982 次 |
| 最近记录: |