Replace values in a list based on condition of previous value

后端 未结 0 1076
抹茶落季
抹茶落季 2020-11-27 10:01

I would like to modify a list that has 3 types of numbers [0, 1, 2]

Each 0 should be replaced with either the last 1 or 2 depending on which was most recent during th

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