📜  制作嵌套列表平面python代码示例

📅  最后修改于: 2022-03-11 14:46:17.790000             🧑  作者: Mango

代码示例2
def flatten(t):
    return [item for sublist in t for item in sublist]