When you use the yield contextual keyword in a statement, you indicate that the method, operator, or get accessor in which it appears is an iterator. Using yield to define an iterator removes the need for an explicit extra class
简单来说,yield会把后面的方法,变量或者表达式变成一个迭代器