a = [1, 1, 1]
b = [i + 1 for i in a]
print(b)
python-对列表中的每个元素加一
最新推荐文章于 2022-10-09 14:44:02 发布
a = [1, 1, 1]
b = [i + 1 for i in a]
print(b)