numbers = [1, 2, 3] for number in numbers: number = number * 2 #For the output I will get: 2 4 6
如何修改我的代码以便结果可以合并(例如[2,4,6])而不使用print语句?
python iteration for-loop output
for-loop ×1
iteration ×1
output ×1
python ×1