Why does on statement create a 6x6 array and other creates a 1x6 array python

前端 未结 0 1266
执念已碎
执念已碎 2021-01-07 04:48

Another super noob question why does

a = [["?" for i in range(6)] for i in range(6)]

create a 6x6 array with seperated "?"

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