且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在python中创建未知数量的变量

更新时间:2023-01-25 08:29:43

列表(或实际上是生成器依次为您提供元组)的列表是您将从csv模块接收的数据类型.可能是您要使用的.

A list of lists (or in fact a generator giving you tuples in turn) is the data type you would receive from the csv module. Which is probably what you want to use.

请参阅: http://docs.python.org/dev/library/csv