2019-04-15 03:59:09 +00:00
|
|
|
<!--# set var="title" value="Fun Python question" -->
|
2019-04-25 02:45:09 +00:00
|
|
|
<!--# set var="date" value="2012-05-17" -->
|
2019-04-15 03:59:09 +00:00
|
|
|
|
|
|
|
|
<!--# include file="include/top.html" -->
|
|
|
|
|
|
|
|
|
|
What does this do?
|
|
|
|
|
|
|
|
|
|
def func():
|
|
|
|
|
print 'foo'
|
|
|
|
|
return
|
|
|
|
|
yield 'bar'
|
|
|
|
|
|
|
|
|
|
print func()
|
|
|
|
|
|
|
|
|
|
Take a guess, then give it a try.
|
|
|
|
|
|
|
|
|
|
<!--# include file="include/bottom.html" -->
|