>>> alist=[1,2,3]
>>>alist
[1, 2, 3]
>>> alist*3
[1, 2, 3, 1, 2, 3, 1, 2, 3]
>>> [alist]
[[1, 2, 3]]
>>> [alist]*3
[[1, 2, 3], [1, 2, 3], [1, 2, 3]]
列表-alist=[1,2,3],alist*3与[alist]*3
最新推荐文章于 2024-08-09 08:10:27 发布
>>> alist=[1,2,3]
>>>alist
[1, 2, 3]
>>> alist*3
[1, 2, 3, 1, 2, 3, 1, 2, 3]
>>> [alist]
[[1, 2, 3]]
>>> [alist]*3
[[1, 2, 3], [1, 2, 3], [1, 2, 3]]