#if you want to initialize a 9*9 two-dimensional array 

[([""]*9) for i in range(9)]



#caution:  the follow code can't work 
[[""]*9]*9

shallow copies of list concatenated 

if you change one row then the prefix row will also be changed

 

相关文章:

  • 2021-10-27
  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-04-15
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-09-08
  • 2022-12-23
  • 2021-11-04
  • 2021-05-28
  • 2021-12-23
  • 2021-11-11
相关资源
相似解决方案