问答题
x = list(range(5))
for index, value in enumerate(x):
if value == 3:
x[index] = 5
else:
print(x)
【参考答案】
(1)
[0,1,2,5,4]; [0,1,2,5,4]
点击查看答案
相关考题
