编程论坛
注册
登录
编程论坛
→
Python论坛
python
eather
发布于 2023-02-14 19:36, 469 次点击
大神求解,python怎么编程把([1,2,3])变成([[1,2,3],[1,2,3],[1,2,3],[1,2,3],[1,2,3]])
1 回复
#2
mrexcel
2023-02-16 20:57
a=[1,2,3]
b=[a]*5
print
(b)
1