Is possible to a generator function return other types instead of generator?

后端 未结 0 1889
一个人的身影
一个人的身影 2020-12-28 21:47

I want to know how python checks for return type on a generator function.

I developed a function that yields from a list, then when the list is empty it simply return

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