Enumerate and Zip to access previous index

前端 未结 0 1711
渐次进展
渐次进展 2020-11-27 09:05

When using zip do you need to use enumerate and convert the zip tuples to a list to access the previous index (i.e. index -1)

e.g.

list1 = [1, 3, 4, 8, 1

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