def counter(start_at): count=start_at while True: val=(yield count) print val count=val

我要回帖

 

随机推荐