when the generator stop for python?

后端 未结 0 1186
有刺的猬
有刺的猬 2020-12-22 20:29

I have python3 function like:

def previous_current(iterable):
    it = iter(iterable)
    prv = None
    cur = it.__next__()
    try:
        while True:
             


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