例题2.4

DENWOSHUABAZONGSHI / 2024-11-10 / 原文

例题2.4代码

a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
d = [c for b in a for c in b]
print(d)