Use an else clause like the ones in formal for loops but in a list comprehension, is it possible?

前端 未结 0 1712
时光说笑
时光说笑 2020-12-30 02:53

Here is an example of my initial list of lists:

trip_chains = [[\'London\', \'Paris\', \'Madrid\'], 
               [\'Delhi\', \'London\', \'New York\'],
            


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