Create a pattern generator has two kinds:
one, a list of formula: (i for i range () ), can only write the ternary operator.
2, with the function.
and return the difference between the yield:
. 1, the function returns the return value, and termination functions.
2, yield return data, and freeze the current execution.