Being less repetitive with try - except

后端 未结 0 1439
抹茶落季
抹茶落季 2020-12-30 02:15

I was wondering how I could condense this code;

def chain_reaction(map, coord):

    explosion = map[coord[0]][coord[1]]
    map[coord[0]][coord[1]] = 0

             


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