【发布时间】:2022-06-13 20:04:41
【问题描述】:
我有一个名为 lists 的列表。
lists = [['Was the indus valley part of the maharashtra empire?',
'Is there such a thing as golden age of indian culture?',
'Is the vedic period the same as the golden age?']]
我想将所有这些句子转换成不同的列表,如下所示。
new_list = [['Was the indus valley part of the maharashtra empire?'],
['Is there such a thing as golden age of indian culture?'],
['Is the vedic period the same as the golden age?']]
如何将一维列表转换为二维列表?
【问题讨论】: