How to compose list comprehension including If Else conditions

后端 未结 0 1039
别那么骄傲
别那么骄傲 2020-12-15 09:53

What is a simple list comprehension (without using any new modules or dictionary) to get output as below:
[1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0,

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