『Python』Python 如何创建多维的list

『Python』Python 如何创建多维的 list

1
2
3
4
5
6
7
8
ans =[[] for i in range(10)]
a = ['0' for i in range(10)]

if **name** == '**main**':

print(ans)
print(a)

在这里插入图片描述



『Python』Python 如何创建多维的list
https://chiamzhang.github.io/2024/06/29/『Python』Python 如何创建多维的list/
Author
Chiam
Posted on
June 29, 2024
Licensed under