📜  如何在python代码示例中创建一定长度的空列表

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

代码示例3
>>> l = [None] * 10
>>> l
[None, None, None, None, None, None, None, None, None, None]