Why isn't Python excepting error in list comprehension

前端 未结 0 1049
滥情空心
滥情空心 2020-12-12 13:32

I have a simple list comprehension with "else 0" incorrectly placed at the end. I put that inside a try block, so I\'m expecting the exception to be c

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