Python 如何创建多维的list

2021-09-06 15:27:07 浏览数 (1)

代码语言:javascript复制
ans =[[] for i in range(10)]
a = ['0' for i in range(10)]

if __name__ == '__main__':

    print(ans)
    print(a)

0 人点赞