📜  python 初始化列表长度 n - Python 代码示例

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

代码示例1
Creating an empty list:

>>> l = [None] * 10
>>> l
[None, None, None, None, None, None, None, None, None, None]