Modify list value at specific index with list comprehension

前端 未结 0 1984
一整个雨季
一整个雨季 2021-02-15 03:54

So I am trying to change value at specific index to every element in list.

colors = [[f\'#{f}10c2b\']*3 for f in range(3)]
[colors[f//3][f%3][3]=f for f in range(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题