How to go back to the beginning of a loop in python if error?

后端 未结 0 1277
谎友^
谎友^ 2020-12-19 09:00

I want to go to the start of a \'for\' loop if some error comes out in python like this.

for i in ~:
   try:
      ---code---
   except ~Error:
      # go bac         


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