Python - mechanism of ```()``` and ```[]```

前端 未结 0 1804
刺人心
刺人心 2020-12-31 12:25

It looks e for e in [1, 2, 3, 4, 5] is a generator expression and (e for e in [1, 2, 3, 4, 5]) is evaluated as an generator object. Hence, I think

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